1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

62 Commits

Author SHA1 Message Date
mchinen
ee9e244b77 Bug 137 (P2) - fix false positive detection of orphaned files that belong to the clipboard (triggered by cut commands) 2011-04-21 21:51:56 +00:00
mchinen
9a8b53c440 Bug 330 (P2) followup - Make missing aliased warnings 1 per project instead of 1 for all projects 2011-04-02 13:03:02 +00:00
mchinen
91d8f132a6 Bug 330 (P2) - Fix an issue where multiple projects would cause the warning dialogs to pop up above the wrong project.
I refactored the code into AudacityApp with a new timer.  This is provisional pending discussion - if it is decided that it should go somewhere else I will move it.
2011-03-29 23:39:00 +00:00
v.audacity
6bbbf5faa9 Bug 137 (P3) - Unreliable project re-opening with orphaned and missing blockfile errors
At bottom of http://bugzilla.audacityteam.org/show_bug.cgi?id=137#c17: 

> I noticed that although when we open the same project a second time with File >
> Open or File > Recent Files we show an error "is already open in another
> window", there is no block on executing the .aup from your file manager and
> opening as many copies of the project as you like. I had not done that when
> Audacity moved the files around in error the first time, but can we block this
> anyway?

This is a different bug from Bug 137, repeatable, and I think lower priority. But I went ahead and fixed it with this commit.

Also fixed previously unnoted bug where AudacityApp::MRUOpen() returned true when it actually failed to open the file. Also removed AudacityApp::OnMRUProject() cruft.

Unfortunately, it still creates a new, empty project window on Win Explorer open whereas Open and Recent Files commands do not. I think that constitutes a new, separate P5 bug. 

Overall, this is another aspect of what I was talking about in http://bugzilla.audacityteam.org/show_bug.cgi?id=322#c26. Opening files vs projects got conflated for convenience, but this code is hacked in some regards, rather than being a good design, and that's why this type of bug shows up.
2011-03-26 01:41:22 +00:00
v.audacity
5e31b813d2 Bug 137 (P2) - Unreliable project re-opening with orphaned and missing blockfile errors
Apply Michael's patch per http://bugzilla.audacityteam.org/show_bug.cgi?id=137#c15 and http://bugzilla.audacityteam.org/show_bug.cgi?id=137#c19.
2011-03-25 23:13:07 +00:00
mchinen
dc12d8a8f4 bug 26 followup - warn of missing alias on variety of instances (export/import/effect/mix,) in addition to first time the read fails.\nIn addition make sure there is only one warning on the screen at a time, bringing the old one to the foreground (although for things like export/effect there will be a progress bar in front of it, the missing files dialog will be above the project window when it finishes) 2011-03-23 01:01:17 +00:00
lllucius
36fe24cdd8 See bug #294 for details 2011-03-11 14:56:36 +00:00
lllucius
d1d5a1e3a9 Refer to bug #294 for details. 2011-03-08 14:09:26 +00:00
mchinen
75745cc71c fix windows build from concatenation of long strings 2011-03-06 22:57:43 +00:00
mchinen
244b1b1d9a fix long string that breaks windows build - testing new method 2011-03-06 20:07:32 +00:00
mchinen
c420e785ae bug 26 followup: remove help button and include File > Check Dependencies recommendation in message 2011-03-06 18:07:12 +00:00
mchinen
5e4250e302 bug 26 - add modeless warning dialog for missing aliased files during playback. 2011-03-01 01:29:03 +00:00
james.k.crook
207b3c6941 Reverted changes to wxPathOnly as it requires a more comprehensive change throughout Audacity. Doing half of it will break projects in Linux with '\' in their filename. (comments in Bug 120, comment #3.) 2011-02-13 23:11:51 +00:00
james.k.crook
271c4b0112 Consistency: wxFileNameFromPath replaced by GetFullName() [related to fixes to bug 120]. 2011-02-13 22:44:21 +00:00
james.k.crook
aca8734795 Possible-Fix: Linux path separator issue, believed caused by wxGetPathOnly(). Only tested under Windows. (Bug 120). 2011-02-13 22:25:18 +00:00
james.k.crook
fd9ac6bf09 Fix: slowdown with many labels caused by LyricsWindow. (Bug 144) 2011-02-12 18:33:49 +00:00
james.k.crook
31c10bd86a Restore safety files (.bak) sooner. The aim is to be back in a good state before we show the error dialog. 2011-02-12 14:37:00 +00:00
james.k.crook
6bdfb13b45 Fix: "\" in file name gives disk full error. Now we complain about a non-existent directory instead. (Bug 120). 2011-02-12 14:25:51 +00:00
richardash1981
2a7c7de30d Commit a warnings removal patch from Benjamin Drung to correct a string of minor misdemeanors. 2011-02-07 20:24:04 +00:00
v.audacity
d2d876d9a5 Bug 258 (P2) - Mixer Board: max peak and clipping lines removed
Fixed bug in resetting mPrevT1. That caused remaining issue noted in Bug 258 comments 2 and 3.

Moved call to UpdateMeters from TrackPanel::OnTimer() to audacityAudioCallback, where it calls gAudioIO->mOutputMeter->UpdateDisplay(), so the updates are synchronized with Meter Toolbar updates.

Removed unnecessary call to MixerBoard::UpdateMeters() in AudacityProject::UpdateMixerBoard().

Various cleanup.
2011-01-31 01:49:01 +00:00
v.audacity
ff398a27b3 Make sure valgrind sees mIsSyncLocked is initialized, even though we're about to set it from prefs. Also, just initialize it directly, rather than calling SetSyncLock, as TrackPanel has not yet been created. 2011-01-07 22:50:22 +00:00
v.audacity
b1e789122f Add overflow checks per Richard's message on "vulnerable to these buffer overflow vulns?" thread on audacity-devel list. 2011-01-02 02:50:39 +00:00
v.audacity
099e203e0c Fix an indent. 2010-11-29 22:12:13 +00:00
v.audacity
93485f5c50 ControlToolBar now appears in GUI as "Transport Toolbar" instead of "Control Toolbar", to better relate it to the Transport menu. 2010-11-16 01:18:39 +00:00
rbdannenberg
a1f0e5ed5b Extensive changes to improve NoteTrack display and (some) editing, NoteTrack playback via MIDI, and Midi-to-Audio alignment. 2010-09-18 21:02:36 +00:00
v.audacity
7e1db64bc2 (bug 20, P2) Log some summary messages as well, for auto-recovery mode, so the log indicates the "safe" choice that was taken for each of the four types of errors. 2010-09-18 00:32:59 +00:00
v.audacity
a26652acfd (bug 20, P2)
Changed the bSilentlyCorrect parameter to DirManager::ProjectFSCK() to be bAutoRecoverMode. If project check errors are found during auto-recovery, it's hazardous to allow the user the various options available during normal project open. But rather than squelching the messages as well as option dialogs during auto-recover, show the messages in the log and bring up an alert. 

This means the helper methods Find*() no longer need bSilentlyCorrect -- they always report to the log.
2010-09-17 22:50:01 +00:00
v.audacity
a07fe36456 Change "Sync-Lock Tracks" button image from chain-link to clock.
EXPERIMENTAL_LINKING -> EXPERIMENTAL_SYNC_LOCK

Restore some "border" lines in TrackInfo.


Get rid of unused DEFINE_COLOUR( clrTrackInfoSyncLockSel...).

Clean out some undocumented commented-out code. Add/remove some comments.
2010-09-14 05:52:01 +00:00
martynshaw99
1d6e1593ee Eliminate msClipLen since it leads to length errors in WaveTrack and WaveClip. 2010-09-12 22:31:58 +00:00
v.audacity
f9be883b82 Made requests for bug reports consistently go to feedback@audacityteam.org and compile issues go to "Compling Audacity" board on the Forum rather than going to -devel. Removed some related code cruft. 2010-09-10 03:19:24 +00:00
martynshaw99
ed187aa185 Select the 'correct' part when pasting in HandlePasteNothingSelected - working up to the more complicated changes required on the same lines. 2010-09-07 23:10:29 +00:00
v.audacity
961d8cdeca Review calls to AudacityProject::ModifyState() and TrackPanel::MakeParentModifyState() to possibly add param to make AudacityProject::ModifyState() optionally not call AutoSave(). There is only one place (TrackPanel::OnSetDisplay()) where autosave is definitely not necessary, so don't change it now.
Also made a few places (e.g., AudacityProject::OnSetLeftSelection()) call AudacityProject::ModifyState() only if the selection actually changed.
2010-08-30 03:24:40 +00:00
v.audacity
70145b8457 (bug 113)
In light of discussion about crazy things users do, decided to leave in the former "Temporarily replace..." options, but changed the wording to "Treat missing audio as silence" and warn that the waveform may not show silence.

Added FSCKstatus_SAVE_AUP flag (and returned FSCKstatus_* to being flags). FSCKstatus_SAVE_AUP is set for missing aliased files, so that AudacityProject does a save, fixing a bug where after "Close project immediately...", opening other projects failed in a way that made them incorrectly report missing _data folders, rather than go through Project Check (DirManager::ProjectFSCK). 

Decided to continue with the fake-out fixes for missing aliased files and missing SimpleBlockFiles, i.e., writing zeroes instead of replacing with SilentBlockFiles. Replacing is difficult, and there are other places where the zeroes trick is used, e.g., after project check, if there's a disk error, such as a .au being inaccessible in the middle of edits. 

Made the "permanent immediately" and "regenerate" options not do a PushState, because they were not possible to Undo.
2010-08-24 02:52:01 +00:00
v.audacity
2ef7a3fd31 (bug 113)
More comments about things to fix (FIX-ME items this time).

Made AudacityProject::OnShowLog make the log window taller so more likely to show the bottom. The implementation of wxLogWindow makes it hard/impossible to scroll to the bottom.

Fix error of duplicate reports of missing aliased files.
2010-08-17 03:46:58 +00:00
v.audacity
af52a83ec1 (bug 113)
restructuring and renaming for clarity, granularity, and reduction of code duplication

Found and commented on more errors in this code. In the "Close immediately" cases, it doesn't do a real close and that can break subsequent opening of other or the same problematic projects. 

Changed several cases where GetDirManager()->ProjectFSCK returned FSCKstatus_CHANGED. These caused a PushState, but Undo could not do anything. Changed corresponding wordings for "Replace missing audio with silence" to say "permanent immediately" instead of "permanent on save", which was incorrect.
2010-08-15 01:22:24 +00:00
v.audacity
66f7ec0c5c Fix some comments, var names, and formatting. 2010-08-14 00:40:04 +00:00
v.audacity
f28d91a599 Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 23:15:00 +00:00
v.audacity
209a2b193d Consolidate multiple names for the same feature: sticky/linked/sync/synchro/grouped -> sync-lock. 2010-08-11 22:47:26 +00:00
martynshaw99
c147720d6c Dynamically set the size of the status bar for sampling rate. 2010-08-01 22:18:35 +00:00
v.audacity
a6cb3debe9 (bug 113)
Comments about what's wrong with the DirManager::ProjectFSCK "Missing Aliased Files" dialog actions and what to do about it. (More to follow!)

Changed PushState for project repair from "Repair" to "Project Repair" to distinguish from Repair effect.

renames for clarity
2010-08-01 00:04:23 +00:00
v.audacity
be83111226 cleanup 2010-07-31 00:29:21 +00:00
v.audacity
0e4aa1c6e5 Get rid of unnecessary GetStickyFlag(). 2010-07-26 22:36:15 +00:00
v.audacity
e30ce7ddb7 Remove EXPERIMENTAL_LYRICS_WINDOW and EXPERIMENTAL_MIXER_BOARD. They've been in every beta for almost a year, so they're no longer experimental. 2010-07-21 04:53:38 +00:00
v.audacity
6f6aae0346 Rename for clarity. It's a bool, not a resultCode. 2010-07-16 05:37:26 +00:00
v.audacity
3f133811fb Get rid of AutoSaveEnabled pref altogether. AutoSave doesn't copy any audio data, so there's no reason to turn it off. 2010-07-01 21:40:29 +00:00
v.audacity
406594a1dc Get rid of AutoSaveMinutes pref, as it wasn't actually used correctly.
Now doing autosave on every PushState, ModifyState, and PopState.
2010-06-30 23:19:21 +00:00
mchinen
811c4ffbc3 fix for crash on sort by name 2010-05-04 03:14:43 +00:00
BusinessmanProgrammerSteve
828481a3c8 Fix window closing behavior, remove (bug 151) 2010-04-19 06:03:21 +00:00
BusinessmanProgrammerSteve
f4beb6856d Linking should default off. 2010-04-13 20:04:27 +00:00
BusinessmanProgrammerSteve
7b6e27af0c Remove label track special case from Edit->Delete 2010-03-30 05:56:19 +00:00