1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 06:31:07 +01:00
Commit Graph

4199 Commits

Author SHA1 Message Date
James Crook
1ffe7367a3 Comment about missing/broken ERR_HANDLING. 2017-02-24 17:21:17 +00:00
James Crook
2a4794760c Merge remote-tracking branch 'dave/metadatacancel' 2017-02-24 17:15:24 +00:00
David Bailes
06dc9073ab Fix for bug 1550 - metadata editor: esc does not cancel
Problem: on Windows, Esc does not cancel metadata editor.

Fix:
1. In tag.h, for windows, don't override IsEscapeKey().
2. In tag.cpp, for windows, include a return in the function DoCancel, so that if a cell is being edited and the user presses Esc, this just cancels the edit, and not the dialog.

This fix returns the behaviour of the dialog on Windows back to the behaviour prior to commit c1ca055. It only affects the behaviour on Windows.
2017-02-24 16:41:08 +00:00
James Crook
72d2aaa385 Merge remote-tracking branch 'paul/bug451' 2017-02-24 16:38:20 +00:00
James Crook
5d76e66168 Merge remote-tracking branch 'paul/AUbug' 2017-02-24 16:37:19 +00:00
James Crook
92349739f9 Merge pull request #175 from cannam/mp3_fix_truncated_import
Fix truncated decode of mp3 files on import
Thanks for this Chris.  Sorry for the delay in committing it.
2017-02-24 14:05:23 +00:00
James Crook
9e7756cdc8 Set IS_ALPHA to 1 2017-02-24 13:44:50 +00:00
Paul Licameli
7808033421 Fix crash opening menu in some AU effects 2017-02-23 22:52:17 -05:00
Paul Licameli
79c07bd5c1 Bug451 re-fix: When file open fails, don't erase blockfiles
The original fix of years ago must have caused leaked memory, and was
undone by my other changes to track memory management.  This fix preserves
the intent, and avoids leaked memory.
2017-02-23 12:47:50 -05:00
James Crook
89c44f9cd6 Add fileSpec to CleanDir, so can be selective about files to delete.
Note that CleanDir may be used on a temp directory, deleting entire projects, and in that case
we delete all files too, but do not want to delete files that are at the top level, only ones inside
projects.
2017-02-20 12:58:11 +00:00
James Crook
0a518b65d1 Don't follow symlinks in RecursivelyEnumerate
Projects will only have symlinks in them if they have been tampered with, and then
following the links, especially when doing CleanDir(), would be dangerous.  So don't.

Improved comments, otherwise it isn't clear that CleanDir is needed on Windows
and Linux, not just Mac.  It is deleting whole subdirs, not just .DS_Store files.
2017-02-20 12:17:16 +00:00
Paul Licameli
5b10c386e9 Bug1594, 1567: Don't destroy source project when saving-as! 2017-02-19 12:55:01 -05:00
Darrell Walisser
11cfe75793 Add missing template instantiation 2017-02-07 13:11:33 -05:00
James Crook
085489f7e2 Don't scan AudioUnits in fast check of plug-in validity. 2017-02-07 11:57:44 +00:00
James Crook
5809499cfc Bug 1580 - Residual
I'd missed the path for Export Audio and Export Selected Audio.
2017-02-07 11:38:56 +00:00
Paul Licameli
e84a5b66ba Fix Mac build after commit e4260e9581 2017-02-06 20:31:51 -05:00
James Crook
ec12bc37b5 Bug 1580 - Enh: New default directory for Save and Export .../Documents/Audacity
Fix affects windows only.
In the case of Save and SaveAs creates the directory too, so that the dialog can be positioned there.
For Export Multiple, will prompt if the directory does not exist.
2017-02-06 15:38:20 +00:00
James Crook
e4260e9581 Bug 1587 - Mac: Ghost duplicate Nyquist effects after upgrade
Fix removes ghost Nyquist effects from the effects menu and generators from generate menu.
2017-02-05 20:27:56 +00:00
James Crook
31df61f537 Set IS_ALPHA to 0. 2017-02-01 16:09:36 +00:00
Paul Licameli
856dfef30f More accurate comments, after foregoing bug1567 fixes. 2017-01-31 14:25:35 -05:00
Paul Licameli
5392feefd4 Bug1521 residual: Save new project, still must remove project* folder 2017-01-31 12:41:54 -05:00
James Crook
0cb89a895a Remember Save/SaveAs Path.
Previously we relied on Windows doing this.  With the fix to now use Documents directory, if none was set, Windows no longer remembers the directory.  So now we remember it instead.
2017-01-30 17:44:43 +00:00
Paul Licameli
6b65375ee5 Bug1521, bug1567 Mac: wipe .DS_Store in temp folder when saving too 2017-01-28 17:23:15 -05:00
Paul Licameli
3ebf9fca20 Remove a sleep that does not help bug1567 2017-01-28 16:21:32 -05:00
Paul Licameli
dd836f4841 Bug1567 Residual - Use wxDIR_HIDDEN in recursive delete.
Added for consistency with log of remaining files.  This change should clear up .DS_Store on Mac, and so help with 1567 residual issue when files are not deleted on exit.
2017-01-28 11:33:55 +00:00
Paul Licameli
04c3a7c13d wxRmDir() diagnostics
Logs files remaining, if wxRmDir() failed in our function, RecursivelyRemove.
2017-01-27 19:46:55 +00:00
Paul Licameli
62cfeea4a6 Unless on Windows, don't remove directories like files...
... avoiding spurious log messages.
2017-01-27 19:40:26 +00:00
James Crook
53c3adfbe7 Bug 1577 - Application configuration file location incorrect on Linux/case-sensitive Macs
On windows the capitalisation does not matter.
On Mac/Windows we use 'audacity' in path names, even if the directories wxWidgets suggests have 'Audacity'.
2017-01-25 22:15:03 +00:00
Paul Licameli
a05d039055 Bug1567: intermittent failure to load libraries, plugins on Sierra...
... At startup, spawn a copy process in main() and crash it at once.  The
child process continues.  (The fix was ineffective when the parent continued
and the child crashed.)

Re-activiation of the application is also needed or else the windows are
hidden behind other applications.

Another sleep when closing a project, to fix occurrences of the bug caused by
closing of a project window without saving changes.
2017-01-25 22:15:02 +00:00
James Crook
97bf72ddb4 Bug 1304 - Starting Save or Export directory is not set, so is unwritable or requires authentication for most users
Covers the case of Export Multiple too.
2017-01-18 14:19:06 +00:00
windinthew
292a74f5c6 Update Team list and year 2017-01-17 03:25:15 +00:00
James Crook
63cb2a7b9a Bug 1575 Residual - Remove a wxLogDebug left in by mistake. 2017-01-16 21:54:04 +00:00
James Crook
0bc20269a7 Bug 1575 Residual - When label tracks exist, Nyquist effects run extremely slowly
The short-circuit evaluation of flags ONLY generated the NotMinimized flag, and all others were set to zero, when short-circuit evaluation happened.  This change remembers and preserves the other flags, so they don't get set to zero.
2017-01-16 17:08:21 +00:00
Steve Daulton
15aa84f10b Fix bug 1575
Includes fix by PRL:
https://github.com/Paul-Licameli/audacity/commit/cbca44e
2017-01-16 12:35:07 +00:00
James Crook
e65d0ca77d Bug 1538 - Mac: "Audacity > Quit audacity" does not have Audacity capitalised
This was caused by using the #define AUDACITY_NAME which had changed to use
lower case 'a' in Audacity.
2017-01-04 14:46:15 +00:00
James Crook
90738ce2ad Create temporary directory recursively + Reduced search path.
Previously this could/would fail to create a temporary directory if the earlier
components in the path did not exist.  The user would then be prompted
unnecessarily for a location to store temporary files.

Also now disallow blank as a temporary directory name.

Also no longer search entire dmg for plug ins.  Just search the app itself.
2017-01-03 15:35:22 +00:00
James Crook
e9b9fcbcb2 Bug 1304 - Starting Save or Export directory is not set, so is unwritable or requires authentication for most users
I have done as suggested in the bug comments, and used:
Windows: Users\username\Documents
Unix/Mac: ~/Documents .

We could though use GetLocalizedResourcesDir() and could use Music rather than Documents.
2017-01-03 15:31:12 +00:00
James Crook
a281431983 Update team list 2016-12-30 12:52:25 +00:00
James Crook
278781c5ec Merge remote-tracking branch 'paul/Bug1561' 2016-12-29 16:19:25 +00:00
James Crook
32a33bf0e4 Bug1314 - Residual. Allow projects to straddle screens.
Opening Audacity can give a project window that straddles screens (if that is what the user wants and had last time they closed).
New windows created from menu item new will still start out initially all on one screen.
2016-12-27 22:58:59 +00:00
Paul Licameli
a6bec5b195 Bug1561, addendum: should still quit after benchmark from cmd line 2016-12-25 20:07:43 -05:00
Paul Licameli
426cb9c40c Bug1561: delay the recovery dialog until after application init 2016-12-19 17:56:52 -05:00
Steve the Fiddle
14c706e16b Bug 1560 - RTP effects: Repeatable crash using Track Dropdown Menu to split during transport
Fixed by disabling some menu items during realtime preview.
2016-12-16 22:53:54 +00:00
James Crook
28b3461bb2 Change Mac search paths to be in-app 2016-12-12 18:00:53 +00:00
Paul Licameli
8f28382525 Fix inability to convert sample format from 16 to 32 bits 2016-12-11 01:34:09 -05:00
Paul Licameli
0921942650 Fix black screen after closing fullscreen window -- REBUILD WXWIDGETS
Works by un-full-screening before closing.  Patching wxWidgets was needed to
make that work correctly after full-screening by clicking on the green circle
in the title bar, but that fix is not needed for full screen after command+/
2016-12-10 15:08:43 -05:00
James Crook
f229aab58a Bug 1329 - Adjustment: Part of the fix only applies to OSX; No longer apply to Linux too.
Adjustment proposed/tested by Steve Daulton.
2016-12-06 12:27:42 +00:00
Paul Licameli
51202bffb0 Fix bug reported by Steve, applying Nyquist effects...
... To short selections (under 1/100 second), at the start of the second of
two separated clips, in a project with a high sampling rate of 192000.

Symptom was that the audio moved so it was pasted to the end of the first clip.

Other uses of the constant WAVETRACK_MERGE_POINT_TOLERANCE should be
reviewed too but this is a conservative fix made close to release time.
2016-12-04 14:16:03 -05:00
Paul Licameli
ba263d0779 Bug1329: not wholly satisfactory fix...
... Partial reversion of commit 2e8ee5fe75

Now, if you open an effect dialog, Return key will apply it.  But, if you
cycle among windows with alt+f6, then the focus moves among the controls in
the effect dialog, and I don't know how to prevent that.

At least so it is in Mac.  I have not verified it with Linux.
2016-12-03 20:01:16 -05:00
Chris Cannam
30eaa0d52c Fix truncated decode of mp3 files on import
The MAD decoder will not decode the final frame in an mp3 stream unless
it has a small amount of padding afterwards (MAD_BUFFER_GUARD bytes,
actually 8). Without this, it loses sync before returning any decoded
data from the final frame. The result is that the imported audio is
truncated by up to 1152 samples.

This commit addresses that by using a final round of input callback
calls to provide the last MAD_BUFFER_GUARD bytes after the underlying
file has reached eof. The logic is based on madplay.
2016-11-26 17:41:07 +00:00