1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

7538 Commits

Author SHA1 Message Date
James Crook
adb42fe8a3 FIX: Slider thumb clipped when at far right.
It was being drawn 2px to the right.
2017-08-09 11:51:14 +01:00
Steve Daulton
da3f28118b Fix: Nyquist PEAK property when NIL & Stereo
Fixes failure of Nyquist Generate effects when stereo track
selected and no time selection.
2017-08-08 11:55:47 +01:00
Paul Licameli
95560ad510 Bug1676, more: don't bother caching the first visible track...
... because the sequence of update of the cache and the use of it were wrong
on Linux, resulting in wrong display when dragging tracks.  Finding the
first visible track is too cheap to justify this memoizing of it.

Commit 8eb64f5f71d19a4c634cb8312fd1fa93ac75f17f was not sufficient to fix
the bug, but I think remains necessary.

It feels good to throw away this needless complication.
2017-08-07 18:51:06 -04:00
Paul Licameli
eb7260320a Reviewed uses of release(); rewrote questionable ones in one file...
... Use of Destroy_ptr that was correct for 2.1.3 was no longer so after
rewrites of Screenshot tool window management, which caused crashes that were
worked-around with release(); but just use a bare pointer now.
2017-08-07 17:01:17 -04:00
Paul Licameli
8eb64f5f71 Bug1676: correct repaint of rearranged tracks on Linux...
... This little one-line fix is the right thing to do.  I do not understand
deeply enough how Linux repainting events are sequenced differently from
Windows or Mac, but I understand the code history enough to know where the
bug was introduced.

Problem was that full Refresh of TrackPanel used to be done earlier, in our
handlers of custom events emitted by TrackList; but now that handling is
delayed, for good reasons, so it is correct that the UIHandle object
should request the early full refresh explicitly, not relying on TrackList
event handling.

See explanations here http://bugzilla.audacityteam.org/show_bug.cgi?id=1676#c6
2017-08-07 13:57:19 -04:00
James Crook
eee58d9449 Bug 1292 - Enh: Zoom Normal (Ctrl+2) may move selection off screen
Selection is now centred after any zoom, if it will fit on screen.
2017-08-05 17:46:52 +01:00
James Crook
7a5bbbcce8 Bug 388 - Mac: Recording Preferences has an unsupported "Hardware Playthrough" option 2017-08-05 15:46:23 +01:00
James Crook
3302455e5f Allow loop play whenever we allow play.
In particular Shift+Space should now loop play a MIDI track.
2017-08-04 14:45:29 +01:00
James Crook
7baf22b9c0 J, K, Shift-J and Shift-K always enabled.
They now just don't do anything if there is no track selected.  (Request from Robert Hänggi)
2017-08-04 14:36:13 +01:00
James Crook
aee0c4cbc6 Fix for broken build (::None)
None clashed with something else under linux, probably a macro expansion.
2017-08-03 17:25:12 +01:00
James Crook
dddac6e47d Bug 1707 - MIDI Loop Play misses first few notes on looping.
The problem was that Audacity did not refill its buffers until the note-off of the last note played.  That was (in the James Bond case) 2.9s after the end of the loop.  The fix was to not add note off events after mT1 and instead use gAllNotesOff.
2017-08-03 14:34:54 +01:00
Paul Licameli
a3c4c5afb5 Bug1705: .gro files should open by drag and drop 2017-08-03 08:19:11 -04:00
Paul Licameli
3288f8d7a0 Bug1704: should default file dialogs to Documents, not program path 2017-08-03 08:07:28 -04:00
Paul Licameli
a5594537bb "/DefaultOpenPath" is now in only one place 2017-08-03 08:05:22 -04:00
Paul Licameli
e3efc98a55 Remove the last defaulting to cwd 2017-08-03 08:05:22 -04:00
Paul Licameli
af447a87c3 Remove another use of cwd for default opening paths 2017-08-03 08:05:21 -04:00
Paul Licameli
5f7353af66 Chain export commands: no cwd; use the default export path, not open 2017-08-03 08:04:47 -04:00
Paul Licameli
5d48e96942 Where FileSelector was used, default to Documents not cwd; save prefs 2017-08-03 08:02:33 -04:00
Paul Licameli
a9d4c2c05b Defaulting of file paths to Documents is defined in just one place 2017-08-03 08:02:19 -04:00
Paul Licameli
d7ac0d30db Fix some missed internationalizations 2017-08-03 07:04:42 -04:00
Paul Licameli
3e39771c53 MIDI imports, like other imports, are put into recent files list 2017-08-02 11:19:27 -04:00
Paul Licameli
1895994bd8 Effect parameter names containing '=' now work in chain editing...
... There was at least one example of this in the LADSPA swh-plugins.

See Tape Delay Simulation.
2017-08-01 12:24:29 -04:00
Paul Licameli
560a1e88ed Bug 1608: Don't crash editing parameters of LV2 effect in a Chain 2017-08-01 12:24:29 -04:00
Paul Licameli
40a4f89243 Bug 1706: Export Midi available whenever MIDI tracks exist 2017-08-01 11:26:07 -04:00
Paul Licameli
5bdac8b4d7 Bug1698: don't use 0 for menu item ID on Mac (assertion in wxWidgets) 2017-08-01 10:03:47 -04:00
James Crook
6cb6652464 Fix Linux: triple height Selection Toolbars 2017-07-29 17:39:33 +01:00
James Crook
bc6d8d33dd Tweak Dutch translation by Thomas De Rocker 2017-07-29 15:02:44 +01:00
James Crook
17a84c0154 Updated Basque translation by Xabier Aramendi 2017-07-29 15:02:00 +01:00
James Crook
77a2ac617b New Basque (Spanish) translation by Osoitz Elkorobarrutia 2017-07-29 15:00:59 +01:00
Paul Licameli
4a28645869 Fix bug found by Bill Wharrie in hightlighting of labels 2017-07-28 22:54:36 -04:00
James Crook
0830234a0f Audacity.dox version to 2.2.0 2017-07-28 20:09:35 +01:00
James Crook
00f6ee2fc3 Const 'fix' no longer needed, thanks to Paul's fix.
Paul's change to DYLD_LIBRARY_PATH initialisation fixes the const issue.
2017-07-28 14:49:56 +01:00
James Crook
6d1b17a24f Update Dutch translation by Thomas De Rocker 2017-07-28 14:23:17 +01:00
Paul Licameli
dba49dd485 Bug1702(Mac Sierra): Use right lib paths, no weird startup tricks...
... Reopens minor bug 543 as a won't-fix.

Bring back the shell script as a way to change environment for Audacity before
it starts.

Perhaps this fixes Bug 1703 too:  double-click on .aup before Audacity starts
brings up an empty window.
2017-07-27 14:19:05 -04:00
Paul Licameli
ac558ce700 Copying of Audacity.sh not an intall-only step, for debug convenience 2017-07-27 13:56:27 -04:00
Paul Licameli
8b32eea8bb Bug290 (load LAME, FFmpeg from correct place): original fix again...
... That is, put a little shell script in the application bundle, and invoke
it (in Release, though not Debug where it interferes with Xcode debugging)

See commit 07661c186f7e8e6d978fa35485d65364b96dfb3a

The shell nulls the environment variable DYLD_LIBRARY_PATH and then executes
the main program.

This is needed because changes to DYLD_LIBRARY_PATH during the main program's
run fail to affect the loading of dynamic libraries afterward.

We need null in DYLD_LIBRARY_PATH to make absolute paths to libraries take
priority.

More info:

Documentation of workings of the macOS dynamic loader
https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryUsageGuidelines.html

The same problem and solution is discussed here
https://stackoverflow.com/questions/6713692/problems-with-using-setenv-and-then-making-the-dlopen-call

It is claimed there that Firefox did the same trick with a shell, which I do
not observe in my version, but GIMP 2.8.16 does this, as I can see by examining
package contents

Also note the mention in this commit's comments (where the script was removed
because bug543's fix left it unused), that the script also used to
interfere with signing.  I hope that there will be a way around that.

98186b9317adf842e0469fe98175b55da31d3210
2017-07-27 13:39:22 -04:00
Paul Licameli
e359383d3b Mac: Don't execve in main or fork & crash to evade its ill effects...
This at once reverts fixes for bugs 543 and 290;

290 being a problem loading libraries,
543 being a minor problem with the fix for 290, resulting in a rewrite of the
fix, but this rewrite having bad consequences, as in bugs 1567 and 1703.

See discussion in bug 1702 for the detailed history

See also commits
a05d039055909d7d1dc2d4f31e1fe0659a3207dd (fork and crash)
36361a6b86dac4b0f2b16b7017007b4cc7717c7a (introduced execve)
2017-07-27 12:22:30 -04:00
Steve Daulton
32f3ccd08e Update file name
The current OS for Mac is macOS
2017-07-27 16:06:21 +01:00
James Crook
00f865860e LightTheme fix, but without the const.
To narrow down the Mac 'wrong library invoked' bug.
2017-07-26 15:37:31 +01:00
James Crook
08795f6843 Fix line ending in Spanish translation 2017-07-26 12:51:32 +01:00
James Crook
2b3f914b5f Update Greek translation by Dimitris Spingos 2017-07-26 12:26:48 +01:00
James Crook
aa58124f53 Update Spanish translation by Antonio Paniagua Navarro 2017-07-26 12:26:12 +01:00
James Crook
e4e7d864ae Update Ukranian translation by Yuri Chornoivan 2017-07-26 12:25:03 +01:00
James Crook
d1b6f3d3b3 Update Danish translation by scotergrisen 2017-07-26 12:24:25 +01:00
James Crook
c316f8122b Revert fix to light theme. To track down library issue. 2017-07-26 12:00:23 +01:00
Paul Licameli
f70788709c Bug1227: Make Audacity detect System language on Mac correctly 2017-07-26 01:04:27 -04:00
Paul Licameli
34f8e79623 Bug1590: Mac skips plugin cfg entries for .ny's of other versions...
... This conservative fix depends on where you put the executable bundle.

Assuing the executable is in /Applications, and the other Audacity version
(past or future) is there too (either bundled as for 2.1.3 and later, or
in a folder as for 2.1.2 and previous):

The .ny files that are part of the other version's shipment are ignored, and
therefore the Effects menu avoids duplicates.

But the .cfg file is not rewritten to eliminate them, in case you want to
switch back to the other version.  If that other version is 2.1.3 or earlier,
sorry but you will see duplicates.
2017-07-25 23:25:33 -04:00
Paul Licameli
fa42d4f661 Some null checks, might be needed when project is closing 2017-07-25 18:00:38 -04:00
James Crook
188886f4da Revert 'Possible fix for Mac library issue.'.
The ',' on the end of the data was not creating a rogue zero entry.
So adding ImageSize-- was incorrect.
2017-07-25 21:17:46 +01:00
James Crook
6513fcf2ca Possible fix for Mac library issue.
Fix off by one error in size.

Git-bisect indicated a problem (on Mac only) caused by a change in an image file.
It's possible that this is an error in code that we have 'got away with' until now.
We always have an extra zero on the end of the image data and included it in the count of the
size of stream to unpack.  For a particular image this may have triggered a memory corruption
problem.
2017-07-25 20:53:42 +01:00