1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

13720 Commits

Author SHA1 Message Date
windinthew
4ae0fa3238 Updated software translation from Atsushi YOSHIDA 2010-07-24 04:02:17 +00:00
v.audacity
54bd928ef6 regarding bug 9:
Was able to make the bug occur after lots of fast clicking around, by double-clicking Preview in Amplify dialog. 

The key seems to be the call to wxYield. That function is obsolete, but looking at the documentation for its successor, wxApp::Yield(): 

"Caution should be exercised, however, since yielding may allow the user to perform actions which are not compatible with the current task. Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see ::wxSafeYield for a better function."

That sounds like exactly the situations where this has occurred. And the documentation for ::wxSafeYieldsays: 

"This function is similar to wxYield, except that it disables the user input to all program windows before calling wxYield and re-enables it again afterwards."

Sounds like what we need. So I went through the code and for all the wxYield and wxGetApp()::Yield occurrences where Audacity is doing some drawing or already in the process of responding to a GUI event, I replaced them with ::wxSafeYield. Replaced all the remaining wxYield calls with calls to wxGetApp()::Yield().

Haven't been able to replicate the bug since these changes. Please test.
2010-07-23 23:29:50 +00:00
windinthew
6ebd7f4716 Updated software translation from Bashishtha Singh 2010-07-23 19:48:10 +00:00
v.audacity
ceb5aff5cb Fixed bug "On Demand calculation stuck at 1%". (Don't know if it had a bugzilla entry. Didn't find one.)
Basic problem was in using wxConvUTF8 instead of wxConvFile. I believe wxConvFile should work on all platforms, but if not we can "#ifdef _WIN32" its use. 

Also simplified the code by getting rid of the mFileNameChar member. It was used only in ODPCMAliasBlockFile::WriteSummary() so there's no reason to do the conversion from mFileName in so many places -- just do it once, in ODPCMAliasBlockFile::WriteSummary().
2010-07-23 01:41:21 +00:00
mchinen
bce418b19b fix possible deadlock for OD.
Also comment related cleanups.
2010-07-22 15:28:54 +00:00
windinthew
e0b92c441e Updated software translation from Thomas de Rocker 2010-07-21 11:22:23 +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
64360a2cd4 Removed the date. Irrelevant and no other built-in effects show it. 2010-07-21 04:38:54 +00:00
v.audacity
1ac6a0af4e bug 113: Went ahead and did the simpler fix, rather than add the performance hit of
checking the entire Undo stack.
2010-07-21 02:17:33 +00:00
martynshaw99
fd268badd5 Fix for bug 180, 'Close' now handled properly. 2010-07-20 22:20:45 +00:00
windinthew
b6442aed73 Updated software translation from Lukmanul Hakim (+ added new strings from latest audacity.pot) 2010-07-20 09:50:50 +00:00
windinthew
e1042d4323 Updated software translation from Carmelo Battaglia 2010-07-19 21:27:12 +00:00
mchinen
af27b274d1 Fix missing lock mutex in main OD loop (!)
This will fix the OD bug where some tasks never start on faster computers that caused the race condition.
2010-07-19 13:41:16 +00:00
mchinen
0fac236e9a Fix whitespace and comments in ODComputeSummaryTask and ODManager 2010-07-19 13:25:52 +00:00
windinthew
f918edb36a Updated software translation from Bashishtha Singh (+ added new strings from latest audacity.pot) 2010-07-19 09:44:01 +00:00
v.audacity
ab81197ce6 Move #include <wx/arrimpl.cpp>. Must occur between the WX_DECLARE_OBJARRAY and WX_DEFINE_OBJARRAY. 2010-07-18 00:05:49 +00:00
v.audacity
cd96baaa4c Fix a compiler warning. 2010-07-17 22:31:02 +00:00
v.audacity
ae85f055ac (working on bug 113)
Fixed a formerly unnoticed crash bug. If user selected a subset of the dependency files list, then clicked "Copy Selected Audio Into Project", it removed the selected dependency/dependencies, but then crashed on bad reference trying to delete the non-selected dependency/dependencies. This was due to a consistent misuse of wxHashMap::operator[] to check for the existence of a hash element. If you call it with a key that's not in the hash map, yes it returns NULL, the first time, but it creates an entry for that key. So if you test it again with the same key it returns a bad entry. Replaced it with a correct call to wxHashMap::count(). Leland had fixed one of these, but there were 4 more. 

RemoveDependencies() always returned true, and was never checked, so made it return nothing.

More readability improvements.
2010-07-17 00:33:31 +00:00
v.audacity
003221bb95 (minor change)
No need to check passed-in value of parameter that's used only for return value.
2010-07-17 00:11:57 +00:00
v.audacity
07806e76a1 (working on bug 113)
Update header block. 

Move declarations that aren't used elsewhere, from .h file. No need to expose them there, used only in this file.

Working on first part of bug 113 where moved/deleted file is allowed to be copied into project:

 * Made class AliasedFile know whether its original file exists in specified location.

 * Dependency dialog:
   ** Updated so message states some original files were moved/deleted, and what to do about it.
   ** Missing dependencies shown in red, italic text. 
   ** Missing dependencies cannot be selected for copying into project.
   
 * Fixed bug where deselecting all items did not disable "Copy Selected..." button.

FindDependencies always returns true, so removed return value and its handling.

Sundry readability improvements: var names, {} brackets usage consistency, indenting, clearer names, etc.

Get rid of vim/emacs declarations. Matt said they're unnecessary, ages ago.
2010-07-16 06:01:40 +00:00
v.audacity
1149680032 (working on bug 113)
Update header block. 
Move declarations that aren't used elsewhere, into cpp file. No need to expose them here.
Get rid of vim/emacs declarations. Matt said they're unnecessary, ages ago.
2010-07-16 05:41:22 +00:00
v.audacity
27e59162b4 (minor text corrections) 2010-07-16 05:38:22 +00:00
v.audacity
6f6aae0346 Rename for clarity. It's a bool, not a resultCode. 2010-07-16 05:37:26 +00:00
windinthew
16716a6ef8 Can't use "v" for an access key - conflicts with Preview 2010-07-11 06:56:02 +00:00
mchinen
fb9e6e5f1a Fix autorecover to recover more than just 3 recording tracks
Also fix mac crash due to assertion where envelope len is zero after recovery.
2010-07-09 16:17:45 +00:00
v.audacity
cf3ba227f7 Further work on bug 137. Accidental click OK on prev commit, so here are comments for it and this one:
* Make progress messages not have ellipsis at end, as convention in other cases.

* Reword "Continue without deleting" radio button about orphan files.

* Fix the removal of empty dirs at the end of DirManager::ProjectFSCK() which previously did nothing because it passed a hardcoded zero count for the file list, to what is now RecursivelyRemove(). Added RecursivelyCountSubdirs() so progress dialog has correct maximum (directory count, not blockCount as previously). Added RecursivelyRemoveEmptyDirs().

* Found that Windows SDK functions sometimes do not remove empty directories and added code to help it in some cases.
2010-07-09 03:52:51 +00:00
v.audacity
afe904e0c5 2010-07-09 03:16:40 +00:00
windinthew
9a2112bb8d Added access keys 2010-07-08 19:25:08 +00:00
v.audacity
28141af2d0 Code review and fixes in pursuit of bug 137
(still in progress, per "//vvvvv" comments):

Update credits and copyright.

Fix some grammar and remove obvious comments. 
   (For example, stack vars are always destroyed when 
      "out of context" (i.e, scope, when stack popped), 
      so no need to comment on it).

Remove wxWidgets error squelching.

"rm_dash_rf*" static functions
   Rename all the "rm_dash_rf*" static functions to better 
      reflect what they actually do (per "finally 
      misnomer" comment). Not very mnemonic to 
      name functions on *nix-specific shell command 
      "rm- rf" that they do not emulate. Only 1 of the 4 
      so-named actually removed anything.
   Remove one unnecessary function (originally 
      "rm_dash_rf_enumerate"), replaced by 
      parameter defaults on main recursive function
      (originally rm_dash_rf_enumerate_i").
   Remove unused parameter "prompt" from 
      rm_dash_rf_enumerate_i (now RecursivelyEnumerate). 
   The files_p and dirs_p ints were actually used only 
      as bools, so make them bools bFiles and bDirs.
   Rename "prompt" vars to match ProgressDialog 
      "message" arg. They do not prompt user to do 
       anything, they're informational.
   files_p and dirs_p were int but used only as bools, 
       so make them bool for better readability.
2010-07-07 04:56:53 +00:00
v.audacity
7501b9a865 minor changes on brief code review 2010-07-06 21:39:08 +00:00
james.k.crook
0c3fbd91ac Can now tab to radio button. 2010-07-05 19:57:18 +00:00
mchinen
5a5957b422 Add seek support to OD-based FFmpeg import.
Also some minor refactoring.
This feature works with mp3 right now - may work on other formats, but that will be a seperate commit.
It is not enabled so most of the changes won't even be compiled, and those that do won't be run.
To enable it uncommment the EXPERIMENTAL_ODFFMPEG def in Experimental.h
2010-07-05 14:38:47 +00:00
james.k.crook
4d244e93ae Noise removal updates from Marco Diego Aurélio 2010-07-04 11:34:51 +00:00
BusinessmanProgrammerSteve
fc0dadf93c Apply Debian patch fixing a Portmixer-related crash (bug 174) 2010-07-02 06:27:45 +00:00
BusinessmanProgrammerSteve
df4e7d2bf5 Fix GCC warning and crash on EQ screen. 2010-07-02 05:33:50 +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
windinthew
d0f67d3e6b * Update for wxwidgets 2.8.11
* Add note that "help" project requires Python
* Add missing section about optional "locale" project
2010-07-01 09:48:35 +00:00
windinthew
119451498b Don't build "help" project by default in Unicode Release or Release to match with win/compile.txt 2010-07-01 09:46:27 +00:00
martynshaw99
992a1ab277 Hopefully read .xml and .XML files on case-sensitive OSs,
Remove 'delete' key functionality.
2010-06-30 23:58:56 +00:00
v.audacity
b85ca7057d Remove call to OnZoomFit after recovery, so that zoom and selection are restored as well. I think when AutoRecovery was written, zoom and selection were not stored in the aup files, so this was a default. 2010-06-30 23:22:23 +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
v.audacity
60dbfddd06 Get rid of VC++ compiler warning about performance. Was forcing int to bool. 2010-06-30 22:10:51 +00:00
richardash1981
058e2a7b3b Updated translation from Thomas 2010-06-29 20:42:07 +00:00
richardash1981
2362728838 No, you should never have _("") in code, because you can't translate an empty
string (and anyway it has special meanings in gettext)
2010-06-29 20:41:14 +00:00
martynshaw99
e982fdb716 Add another SetName for the rename dialog. Maybe it'll help screen readers? 2010-06-27 22:28:04 +00:00
martynshaw99
31abee22b5 Add a suffix to duplicate names.
Remove double-click to rename, for keyboard users.
Added 'Names' to controls in the hope that screen readers will be helped.
Resizing works better.
Various tidy-up, inc. adding a few comments!
2010-06-27 22:20:58 +00:00
windinthew
f72a38c3f1 Replace "version in Audacity CVS" with "version in Audacity SVN". "Crib notes on upgrading lib-src trees" still needs updating for SVN 2010-06-21 18:48:02 +00:00
windinthew
e192648cdf Updated software translation from Carmelo Battaglia 2010-06-21 18:18:15 +00:00
windinthew
336a4b4f0d * Added access keys for main EQ window
* Fixed a typo in "Manage Curves" help text and tweaked it a bit (uses "Save" word as per "Save/Manage curves..." button)
2010-06-18 20:39:32 +00:00
prlivesey
aadc759fe2 Moved 'class EditCurvesDialog:public wxDialog' outside of the '#if wxUSE_ACCESSIBILITY' conditional to allow compilation when wxUSE_ACCESSIBILITY is undefined. 2010-06-16 11:03:58 +00:00