1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00
Commit Graph

362 Commits

Author SHA1 Message Date
James Crook
caf4eadb97 Help button for many warning messages; Restored warning icon.
The error icon was gone because we are now using the ErrorDialog, which didn't have it.  So added back explicitly.  I decided to go with wxART_WARNING rather than wxART_ERROR because nearly all of these present as warnings.
2020-09-14 17:43:28 +01:00
Paul Licameli
a00fe789b9 More aup import review (#656)
* More format fixes on import: beware sequences with differing format...

... It could happen.  When collecting file information to be used in the
second pass, record the correct format for each.

Don't mistakenly use whatever was the format of the last read Sequence for all
files.

This only matters for the avoidance of unnecessary sample format conversions
when finally appending samples to tracks.  It won't affect the space ultimately
occupied in the database.

* Cautions against double throw in a finally block

* Fix some Doxygen in ImportAUP.cpp
2020-09-02 00:36:48 -05:00
Paul Licameli
d5a4ed74d2 Bug2538: Fix persistence of Sequence format in imported .aup ...
... which may be important if the user saved 16 bit for space efficiency.
Don't lose that efficiency.
2020-09-01 22:25:55 -04:00
Paul Licameli
1e3885730f Aup import review (#654)
* Remove unused member

* I think you want to null the clip pointer when done with it?

* Simplify end tag handling

* Clear tracks in one place, but it may not matter...

... The file handle object is destroyed and not reused in any case

* Log messages can be English

* Let first error message override any mere warning; comments, assertion

* Remove unreachable code -- see the loop preceding it

* fix more unreachable code

* Correct unusual case of file names (is it used?)

* Re-use SFCall, in case we decide in future that the mutex does matter
2020-09-01 09:26:23 -05:00
Paul Licameli
7294f7a8e0 Bug2532: should preserve sharing of sample blocks when importing AUP (#651) 2020-08-30 17:18:18 -05:00
Paul Licameli
4ca3e7096f Track factory cleanup (#646)
* Don't need TrackFactory to make LabelTrack

* Don't need TrackFactory to make NoteTrack

* Don't need TrackFactory to make TimeTrack, or ZoomInfo in the factory

* Remove some forward declarations

* Rename TrackFactory as WaveTrackFactory, move it out of Track.cpp
2020-08-22 18:44:49 -05:00
Leland Lucius
030f92c40b AUP3: Fix condition 2020-08-12 11:38:54 -05:00
Leland Lucius
f43ad3f0e0 Fix missing OPUS files in import file dialog 2020-08-11 17:07:21 -05:00
Leland Lucius
6d08c600df Bail on any error when checking for valid MP3 frames 2020-08-11 10:10:51 -05:00
Leland Lucius
dffa24cf69 Bug 2445 - Cryptic, unhelpful, error message when importing malformed MP3 file 2020-08-09 13:24:48 -05:00
Leland Lucius
56b1b5c31f Bug 2445 - Cryptic, unhelpful, error message when importing malformed MP3 file 2020-08-09 13:23:09 -05:00
Leland Lucius
f09f03e44b Skip APE and Lyrics tags in MP3 importer
In addition, CheckMP3 was updated to use the mad header decoder
to more easily scan for valid MP3 frames.
2020-08-08 03:38:38 -05:00
Leland Lucius
7bb2417db3 AUP3: Fix flushing of tracks/clips in AUP importer 2020-07-22 14:40:14 -05:00
Paul Licameli
bd6536f3c4 Remove obsolete mentions of blockfiles in comments & incomplete types 2020-07-20 19:03:31 -04:00
Leland Lucius
e669b365f1 AUP3: Remove unneeded error message 2020-07-18 09:25:10 -05:00
Leland Lucius
df4f3bd4e2 AUP3: "All supported files" filter missing AUP3 extension 2020-07-17 20:45:54 -05:00
Leland Lucius
79b8c65f60 AUP3: Make the AUP3/AUP file types consistent 2020-07-15 11:58:45 -05:00
Leland Lucius
2accd9e93f AUP3: Bug 2187 - no error message) when using a missing aliased audio file 2020-07-15 08:40:39 -05:00
Leland Lucius
176eb49a1e AUP3: Several little fixes
Handle bypassing of timetracks in AUP importer correctly
Add bypassing of timetracks in AUP3 importer
Move/add AUP3 in filter lists.
2020-07-15 07:57:20 -05:00
Leland Lucius
5bc3ae659c AUP3: Added AUP3 importer and improved progress dialogs 2020-07-15 01:32:48 -05:00
Leland Lucius
25d9e1c387 AUP3: Add better progress to AUP importer 2020-07-13 00:59:12 -05:00
Leland Lucius
a0008831e0 Revert "AUP3: Reworked CopyTo() yet again"
A bit more thought needs to do into this.
2020-07-12 10:55:54 -05:00
Leland Lucius
e3c5563d35 AUP3: Reworked CopyTo() yet again
This time it has the potential to produce much smaller
output files since it ONLY copies the active blocks and
not all of the blocks related to undo history.
2020-07-12 10:39:37 -05:00
Leland Lucius
5ffff72d35 AUP3: Fix includes 2020-07-09 14:08:21 -05:00
Leland Lucius
251da3bb3b AUP3: First go at the AUP importer
Near as I can tell, it's pretty much done. Feeding all manner of
.aup projects will definitely need to be done. It would be best
to feed it REAL projects, not the contrived ones I've been playing
with.
2020-07-12 03:53:25 -05:00
Leland Lucius
d39590cf41 AUP3: First round of updates
!!! THERE WILL NO DOUBT BE BUGS !!!

This is a big one and there's still several things to
complete. Just want to get this in the wild to start
receiving feedback.

One big thing right now is that it will NOT load pre-aup3
files.  An importer is on the way for that.
2020-07-01 02:30:18 -05:00
Leland Lucius
cbf1bb558e AUP3: Removes OD code related to project file handling
This removes all of the OnDemand code embedded throughout
    the main codebase. Individual files related specifically
    to OD have been left in place, but removed from the build.
2020-07-01 01:14:05 -05:00
Leland Lucius
3276234ae8 Bug 2484 - OPUS import fails 2020-06-16 09:05:29 -05:00
Paul Licameli
3869a8f460 Remove allegro.h from other headers 2020-06-14 10:32:16 -04:00
Paul Licameli
da93757401 Remove ImportRaw.h from other headers 2020-06-13 12:19:38 -04:00
Paul Licameli
f3d91f488e Remove extern declarations from .cpp files...
... Require the declarations to be in .h files, to be sure graph.pl detects the
dependencies.

Only one more #include was needed in Nyquist.cpp.   This doesn't reveal any
more hidden cycles.
2020-05-28 05:50:25 -04:00
Paul Licameli
ae9aca8177 Implement member functions of classes in corresponding .cpp files...
... in four cases; not in some other .cpp file.

This is another move that causes the generated graph to reflect dependencies
correctly.

This fixes other large, hidden cycles that involved PrefsDialog.cpp: there was
link dependency on that when PrefsPanel.h was used for the base class.  No
longer.

Also cycles involving TrackPanel.cpp, which contained the default
implementations for TrackPanelCell and related abstract base classes.
2020-05-28 05:50:22 -04:00
Paul Licameli
0c97138840 Include only Registry.h where needed, without CommandManager.h 2020-05-28 05:45:11 -04:00
Paul Licameli
226a80140a Add some unnecessary #include directives...
... They are not necessary to build, but the do indicate some link
dependencies to fix, that were not shown in results of scripts/graph.pl.

The link dependencies exist because the header declaring some name did not
correspond to the .cpp file that defined it.
2020-05-27 19:58:17 -04:00
Paul Licameli
66c5b76573 Simplify public interface of FileHistory 2020-05-26 10:47:47 -04:00
Leland Lucius
35e88d995b Bug 421 - Crash importing malformed MP3 file using libmad
This adds LAME tag handling and bad MP3 detection, but
it's pretty much a complete rewrite, so plenty of testing
is needed.
2020-05-23 22:03:41 -05:00
Paul Licameli
d373e27840 Remove some unused forward declarations and #include directives 2020-05-23 05:32:01 -04:00
Paul Licameli
7fb4652c88 Remove some unused functions and forward declarations 2020-05-23 05:16:59 -04:00
Paul Licameli
e72634fb9d Keep EXPERIMENTAL_OD_DATA compilable 2020-05-22 21:36:14 -04:00
Paul Licameli
c941647db6 Replace last wxProgressDialog with ProgressDialog; remove all wx/progdlg.h 2020-05-22 20:44:08 -04:00
Paul Licameli
4d09705a73 Change XO to XXO in many more places, with no effects at all...
... because the two macros have the same expansion, and are both checked for
in the --keyword arguments passed to msgfmt by locale/update_po_files.sh.

This commit makes ONLY such changes, and comments in Internat.h.  It is big
but quite harmless.

The intention is to introduce a type distinction in a later release, by defining
XXO differently.  XXO is used where & characters in strings (for hotkeys of menu
items or control prompts) are permitted, XO where not.
2020-05-22 13:07:50 -04:00
Leland Lucius
1ca911ed38 Convert all __WXDEBUG__ tests to use new _DEBUG symbol
This symbol is based on the NDEBUG symbol that's automatically
defined by CMake.
2020-04-25 02:36:27 -05:00
Paul Licameli
2e5fc675c7 Fix import stream dialog...
... see commit 5bfd44d81f
2020-04-12 18:55:40 -04:00
Paul Licameli
8fad3651a0 More corrections in comments 2020-04-11 10:26:49 -04:00
Yuri Chornoivan
d1ada5f08c Fix minor typos 2020-04-11 10:06:24 +01:00
Paul Licameli
61abb87a77 Reviewed all i18n-hint comments...
... Moved many misplaced ones, which msgfmt would not have extracted into
audacity.pot.

Duplicated some of them, to appear with related but distinct msgids.

Added a few new comments.

Deleted one that was no longer needed in ProjectManager.cpp.
2020-04-05 09:00:00 -04:00
Paul Licameli
b1b8b034c8 Reimplement import plugin registation without sequence numbers 2020-02-01 08:39:52 -05:00
Paul Licameli
2570b56176 Rename Maybe and its members more like std::optional of C++17 2020-01-19 11:38:12 -05:00
Paul Licameli
7592227f14 Remove uses of GetActiveProject in import 2020-01-02 13:11:17 -05:00
Paul Licameli
c64b3cb31f Rewrite FileDialogWrapper using FileNames::FileTypes...
... also removing some repeated code and using the config keys /DefaultOpenType
and /LastOpenType only in Import.cpp
2019-12-29 15:35:03 -05:00