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

559 Commits

Author SHA1 Message Date
lllucius
85b0e44e2e Add missing include. 2011-02-24 04:38:40 +00:00
lllucius
07661c186f Fixes detection problems on Mac and possibly Windows (Bug #290)
This should fix the detection problems on the Mac and may even help with issues
on Windows and Linux.

On any of the platforms, the main issue is the search path for libraries and
how absolute path names are handled.  The Mac seems to be especially
susceptible since there isn't one concrete location where libraries are stored.

Windows handles absolute paths differently and allows runtime updates to the
environment variables (and if push comes to shove, provides the
SetDllDirectory() function), so if problems still exist, they should be easy to
circumvent.

This patch does three things:

1)  It adds a shell script on OSX that takes care of starting Audacity after
reassigning and clearing the DYLD_LIBRARY_PATH environment variable.  This will
allow loading of libraries from their absolute path rather than searching
DYLD_LIBRARY_PATH first.  This script should be transparent to the user, but it
will affect people running Audacity with gdb as they will have to specifically
target Audacity.app/Contents/MacOS/Audacity instead of the Audacity.app bundle.
 Not big deal really.  If ppl no enough to use gdb from the command line, they
should be able to figure it out.

2)  It corrects detection of a monolithic FFmpeg library.  This is one where
avformat, avcodec, and avutil have all been linked into one large library.  The
main issue here was that under OSX and Linux, looking for symbols that should
reside in avutil and avcodec, would always succeed since dlsym() on these
platforms not only scans the requested library, but any dependent libraries as
well.  And when avformat was loaded, it would pull in it's dependent libraries
as well.

Another issue here was the if it was determined that the library was not
monolithic, the library was never unloaded, so those dependent libraries may
have come from the wrong location since they would have been loaded via the
normal search paths and not by absolute path name.

3)  It adds a method to FileNames which returns the full path name of a loaded
module that contains an address.  In the case of FFmpeg, it is used to verify
that a routine from a specific library is actually being used from that library
or not.  It is also used to show (in Help->Show log) the directory from which a
library was actually loaded.
2011-02-23 01:41:40 +00:00
v.audacity
6c147de4ab Bug 113 (P2) - Dependencies dialogue not safe against user error
Fix for resize improvement per http://bugzilla.audacityteam.org/show_bug.cgi?id=113#c42. File size column is now always 120px. The rest, less 8px for border, is for file name.
2011-02-22 08:57:13 +00:00
mchinen
e68767cd04 re-add and update device preferences to match new device model.
also restores portaudio device defaults functionality when the device can't be found.
2011-02-19 21:53:22 +00:00
v.audacity
77b1be7f3d Bug 113 (P2) Dependencies dialogue not safe against user error
Make dependencies dialog resizable.
2011-02-17 01:26:57 +00:00
mchinen
96390e5170 fix linux build from last commit 2011-02-13 23:27:59 +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
mchinen
4a762fc936 bug 29/11 - add rescan capability for devices.
This is a workaround for the portaudio issue where changing the default device in xp will corrupt the portaudio device indecies.
This combined with the portmixer fix (earlier today) should address bug 29.
2011-02-13 23:00:43 +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
mchinen
b6ee2bf9f5 add missing files from last commit 2011-02-13 18:59:02 +00:00
mchinen
fe570ac355 add singleton device manager to refactor and minimize portaudio change bugs. Adds rescan functionality which will address some bugs but not added to menu yet. will add files to mac and windows build soon 2011-02-13 18:57:43 +00:00
james.k.crook
fd9ac6bf09 Fix: slowdown with many labels caused by LyricsWindow. (Bug 144) 2011-02-12 18:33:49 +00:00
mchinen
8c805c03dd DeviceToolBar.cpp: better redraw on change host.
Also fixes an issue where the combo boxes on other project's device toolbars wouldn't resize when the active projects device toolbar changed the host.
2011-02-12 18:25:06 +00:00
james.k.crook
0d6197b2a8 Fix: Regression - Region save can save a cursor position again, now. (Bug 273) 2011-02-12 17:13:07 +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
james.k.crook
91b1124a39 Completion of fix for bug 229, so that we check against changes in progress rather than the master list. 2011-02-12 12:40:49 +00:00
james.k.crook
01c8c239d0 Fix: Same hot-key configurable to multiple commands. (Bug 229) 2011-02-12 12:13:32 +00:00
v.audacity
ca35e29a0f Remove unused var. 2011-02-11 00:33:55 +00:00
james.k.crook
73b7d4dba3 Patch to fix menu hot-key conflicts on mac, fixing bug 88, (adapted from patch by Gale) 2011-02-10 21:16:14 +00:00
richardash1981
5304bbf19a Warning supression patch from Benjamin Drung 2011-02-07 20:28:20 +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
mchinen
22b64149de DeviceToolBar.cpp: Make all projects' device toolbar reflect the changes when made in another project. 2011-02-07 00:41:51 +00:00
mchinen
a9437f795b DeviceToolBar.cpp: Better event handling -
Make OnChoice only do the action associated with the combo box being interacted with.
Also refactor associated input and output device code into new function.
2011-02-06 23:34:32 +00:00
mchinen
046593405f bug 11 followup: DeviceToolBar - for Win DirectSound and MME don't allow input source lookup for the mapper devices.
This is kind of a hack that relies upon portaudio to make the first index the mapper for these apis.  I verified this for MME in portaudio src, but could not for DirectSound, so this may need to be reverted.
Should address gale's issues on win xp.
2011-02-05 19:07:02 +00:00
mchinen
fff977b942 ToolBar.cpp: remove excessive drawing on reset (as well as other resizing/positioning functions.)
Was causing an issue with the DeviceToolBar (discussed in bug 11,) but this change will speed up redraw of other toolbars as well.
2011-02-05 14:16:44 +00:00
mchinen
9e5cb8f6af DeviceToolbar.cpp: better fit for resize and fix overspilling of channels combo when toolbar is very small. 2011-02-05 13:37:31 +00:00
mchinen
500b3a32df DeviceToolBar.cpp: fix possible index out of bounds case 2011-02-05 10:04:29 +00:00
v.audacity
7a507aca95 Bugs 255 and 148 (P3)
Commented out some code. Since Roger's fix is to not use r, no reason to declare or calculate it, or link.
2011-02-04 22:02:10 +00:00
v.audacity
205a384e93 Bug 255 (P3) - Spurious drawing in wave tracks/focus border when manipulating gain sliders
Bug 148 (P3) - Label keystrokes painted at playback position 

Roger's patch for Bug 255 is to Refresh the whole TrackPanel. He says this should also fix Bug 148.

We'll see if it's too much of a performance hit.
2011-02-04 21:52:33 +00:00
james.k.crook
fa8d42e664 Restructure to a switch statement (John Clark) 2011-02-03 12:35:31 +00:00
mchinen
df6e56a57e DirManager.cpp: refactor near identical methods Move/CopyToNewProjectDirectory to use the same code 2011-02-02 20:42:43 +00:00
mchinen
3abd32a98b DirManager.cpp: remove old cruft comments and return an false on error 2011-02-02 20:11:42 +00:00
v.audacity
63f391ba46 Minor changes to comments. 2011-02-02 00:43:00 +00:00
v.audacity
39adb7b552 Fix bug in WarningDialog where dismissing via the close box made "don't show again" checkbox always stored as true, because EndModal() was called not via WarningDialog::OnOK() and the return value was 5101. So the prefs file had 5101, which is later read as "true", regardless of the actual setting of the checkbox.
Various other cleanup.
2011-02-01 22:30:10 +00:00
mchinen
dbf7942e1d MixerToolBar.cpp: fix input slider enabled status to match AudioIO::mInputMixerWorks 2011-01-31 13:38:40 +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
mchinen
7d6c347140 bug 11 followup: fix visual glitch when changing hosts 2011-01-30 23:40:37 +00:00
mchinen
3f4b5f7779 DeviceToolbar.cpp: use OnChoice instead of obfuscated ProcessCommand for combobox modal dialog 2011-01-30 23:30:49 +00:00
v.audacity
0254283598 Bug 11 (P2) - Input sources cannot be selected in Mixer Toolbar.
Trying to fix problem reported by Gale on audacity-devel, "Error building r10887 on Ubuntu".
2011-01-30 20:30:17 +00:00
mchinen
ecbff8fee2 bug 172 followup: display correct semitones and restore non-inverted tempo values for Sliding Time Effect 2011-01-29 22:32:39 +00:00
mchinen
84c6013a17 fix build on mac 2011-01-29 22:08:22 +00:00
mchinen
47ac55b29c bug 11 followup: Add dialogs and shortcuts for each combo of device toolbar 2011-01-29 18:46:06 +00:00
mchinen
ed20efb357 DeviceToolBar fix typo based bug in last commit 2011-01-29 17:36:46 +00:00
mchinen
efb6f2e584 fix initial input channel number combo population on fresh start without audacity.cfg (could not replicate so did not test) 2011-01-29 17:31:19 +00:00
mchinen
4511331f88 bug 11 followup: let DeviceToolBar be resize smaller than intial width 2011-01-29 16:06:40 +00:00
mchinen
90be578616 bug 11 followup: remove rec channels label from DeviceToolBar and add input channels to within combobox text 2011-01-29 15:15:06 +00:00
mchinen
df27456f83 make DeviceToolBar's toolbar grid height same (small) for linux as mac/win (was large/double size) 2011-01-29 15:05:33 +00:00
lllucius@gmail.com
7d889359c5 Use currently selected timeformat (in SelectionBar) as default for Label dialog 2011-01-25 04:50:02 +00:00