1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

6622 Commits

Author SHA1 Message Date
Paul Licameli
2626f6cd5b Exception safety in: subclasses of ImportFileHandle 2017-03-21 14:11:27 -04:00
Paul Licameli
ed6f2ea80f Exception safety in: locking of BlockFile for read 2017-03-21 14:11:27 -04:00
Paul Licameli
f5fe9281e4 Strong safety guarantee for removing file dependencies 2017-03-21 14:11:26 -04:00
Paul Licameli
7159966eb4 Comment that cache-filling should be no-fail (we don't use it anyway) 2017-03-21 14:11:26 -04:00
Paul Licameli
54c1b0c955 Exception safety in: opening and saving of projects 2017-03-21 14:11:25 -04:00
Paul Licameli
4d4cd91d91 Hoist, and delay, the saving of import tag while opening the file...
... so that AudacityProject::AudacityProject no longer has a path in the
static call graph that reaches block file write operations that might throw.

So it is easier to prove that other functions, calling that, don't throw.

Also delay the possibly thowing save of the import until after certain other
steps in the file opening procedure.
2017-03-21 14:11:25 -04:00
Paul Licameli
22a12c6852 Exception safety in: some effects and generators...
... Those that directly call WaveTrack functions in their Process() routines,
which might throw exceptions for disk space exhaustion.
2017-03-21 14:11:25 -04:00
Paul Licameli
1fad6292a2 Exception safety in: overrides of ShowInterface 2017-03-21 14:11:24 -04:00
Paul Licameli
79c3bef2ce Exception safety in: general effect performing functions 2017-03-21 14:11:24 -04:00
Paul Licameli
2cbdd1cc43 Exception safety in: ControlToolBar & Ruler functions...
... because SetupCutPreviewTracks has a small chance of throwing for want
of disk space.

StopStream however is considered nonthrowing.
2017-03-21 14:11:23 -04:00
Paul Licameli
0bb6a3d971 Exception safety in: importing functions...
... Side effects on preferences may persist even after errors.
2017-03-21 14:11:23 -04:00
Paul Licameli
0c8bedc59a Exception safety in: subclasses of ExportPlugin; and more error checking 2017-03-21 14:11:22 -04:00
Paul Licameli
48459404a5 Exception safety in: general exporting routines 2017-03-21 14:11:22 -04:00
Paul Licameli
464828d88f Exception safety in: batch processing 2017-03-21 14:11:21 -04:00
Paul Licameli
abbe9276f0 Exception safety in: CommandManager 2017-03-21 14:11:21 -04:00
Paul Licameli
40aa70a255 Exception safety for Edit toolbar button presses 2017-03-21 14:11:21 -04:00
Paul Licameli
664974d3ff Exception safety in: ondemand 2017-03-21 14:11:20 -04:00
Paul Licameli
195732f074 Exception safety in: BatchCommands 2017-03-21 14:11:20 -04:00
Paul Licameli
1a90b7d942 TimerRecordDialog: comment why nothing need be done for exceptions 2017-03-21 14:11:20 -04:00
Paul Licameli
63e44e2b6b Rearrange a few things in time shift button up...
... to reclaim some memory earlier, before possible throws
2017-03-21 14:11:19 -04:00
Paul Licameli
68c726918b If exception in cut/copy, leave clipboard clear (no partial results) 2017-03-21 14:11:19 -04:00
Paul Licameli
41f1ebfb5d Commit resampling of tracks to undo history one track at a time 2017-03-21 14:11:18 -04:00
Paul Licameli
82dd7545c9 Reviewed uses of release(); prefer Destroy_ptr to hold window objects 2017-03-21 14:11:18 -04:00
Paul Licameli
7927fe065f Fix move constructors and assignments of AudacityException classes 2017-03-21 14:11:17 -04:00
Paul Licameli
e9a4fc8354 fix the XML writer -- don't throw if target path did not previously exist. 2017-03-21 14:11:17 -04:00
Paul Licameli
d812b7f8a4 Merge branch 'master' into HEAD 2017-03-21 14:10:27 -04:00
Paul Licameli
12e3d1d2e2 Small correction to parsing of LOF file 2017-03-21 11:21:25 -04:00
James Crook
5e3a4fa29d Name Record Beside menu option correctly. 2017-03-21 13:31:33 +00:00
Paul Licameli
715758d869 Small improvements in Sequence and BlockFile 2017-03-20 17:59:50 -04:00
Paul Licameli
52fd607b42 Sequence::AppendBlock and Sequence::Blockify are static 2017-03-20 17:49:03 -04:00
Paul Licameli
2677796b0c Zero and return false for all failures to read block file summary...
... Though in the only place where these summaries are used, which is
Sequence::GetWaveDisplay, we ignore the correctly reported error code anyway.

Also RAII in management of relevant memory buffers and mutexes.
2017-03-20 17:49:03 -04:00
Paul Licameli
7b7ad75a49 Remove Sequence::CopyWrite and needless file reads in Sequence::Set 2017-03-20 17:49:03 -04:00
James Crook
c6b4e2fffe Add code to capture menus
So far, this only walks the menus, printing out their contents to debug.
2017-03-20 17:06:29 +00:00
David Bailes
879579475d Fix for bug 1611: after select none, temporary in-correctness
After select none, the timeline and selection times are temporarily not updated.

Fix: AudacityProject::SelectNone refreshes the TrackPanel, so call it after changing the SelectedRegion.
2017-03-20 15:06:59 +00:00
David Bailes
ec7fe2dfcc Fix for bug 613: menu key deselects track.
When the menu key is pressed, mouse events are also generated, and one of these was interpreted as a mouse click outside the tracks, which deselected the tracks.

A possible fix would have been to make a change in TrackPanel::HandleTrackSpecificMouseEvent() so that only left clicks outside of tracks would deselect tracks.
However, I decided that a better fix was to modify TrackPanel::OnMouseEvent to ignore the mouse events generated when the menu key is pressed. This should prevent these mouse events from causing bugs in any new code.
2017-03-20 13:33:24 +00:00
James Crook
5b9ae95930 Bug 1610 - Unable to save projects
We were throwing an exception for attempting to delete a file that was not there.
2017-03-20 11:53:39 +00:00
James Crook
8f71aa67df Allow same command more than once in the menus.
Pause appears in both Record and Play, and we want the P shortcut to work.
2017-03-19 19:32:35 +00:00
James Crook
148fc40b78 Restore menu items removed for DarkAudacity.
I'm not sure how useful they are, but Audacity may want them still.
Changed 'Store' to 'Save' to avoid confusion with 'Restore'.
2017-03-19 18:52:39 +00:00
James Crook
d85ee24bf3 Merge branch 'menus' 2017-03-19 17:14:00 +00:00
James Crook
0aac05bd58 Merge branch 'master' into darkaudacity
I moved type to create labels under labels.
I made the menu items for SaveAs MP3/WAV/Ogg mainstream.
Introduced EXPERIMENTAL_DA2 to deal with some colour issues.
2017-03-19 17:05:07 +00:00
James Crook
5c1f4d24b5 Menu rearrangement merged from DarkAudacity 2017-03-19 16:43:51 +00:00
James Crook
f606375202 Merge branch 'master' into darkaudacity
Fixed conflicts by hand in:
	LICENSE.txt
	README.txt
	src/AboutDialog.cpp
	src/Audacity.h
	src/HelpText.cpp
	src/toolbars/ToolDock.cpp
	win/audacity.iss
2017-03-19 15:48:16 +00:00
Paul Licameli
d38dde213e Revert "Fix compilation of EXPERIMENTAL_EFFECTS_RACK"
This reverts commit 9842d0742f95dafc9949c775506d2f96c4ac3256.
2017-03-19 10:51:00 -04:00
Paul Licameli
9842d0742f Fix compilation of EXPERIMENTAL_EFFECTS_RACK 2017-03-19 10:49:23 -04:00
James Crook
e78d209a68 GPL v2 and CC BY 3.0
Missing Version numbers.
2017-03-19 13:59:19 +00:00
James Crook
439edae203 Update source files.
Used autoreconf --no-recursive --install to do this.
2017-03-18 20:13:39 +00:00
James Crook
748e718395 Workaround for FLAC__MAX_METADATA_TYPE not defined. 2017-03-18 19:44:12 +00:00
James Crook
7b6b6ef037 Update .pot and .po files to 2.2.0 2017-03-18 18:46:25 +00:00
James Crook
90051c7c3a To 2.2.0 in .pot file. 2017-03-18 18:05:30 +00:00
James Crook
47fb879157 Don't translate the empty string. 2017-03-18 18:04:56 +00:00