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

8751 Commits

Author SHA1 Message Date
Henric Jungheim
40ce9d6fca portaudio-v19: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
ee5609b8ee libsndfile: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
2ebb341490 libscorealign: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
bd5b333787 libnyquist: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
8bf2071fdd lv2: Update for VS2015+ 2018-06-26 06:53:47 -07:00
henric
659f8cbc6f Get rid of the Windows compatibility headers stdint.h and inttypes.h.
Microsoft provides their own these days.
2018-06-26 06:53:47 -07:00
David Bailes
8b87e18c6d Accessibility: clean up track focus events after an effect is applied.
Problem. When an effect is applied, whatever track is the original focus, there is a focus event for track one. This causes NVDA to read out the track name of track 1, which is unnecessary noise.
The reason for this is that the execution of the Progress dialog destructor causes AudacityProject::OnActivate() to be called which causes a set focus on the TrackPanel. When this happens, the pointers to the selected tracks have changed, but the final focus has not been set (at the end of AudacityProject::DoEffect()). So TrackPanelAx::GetFocus returns the first track.

Fix: Modify TrackPanelAx::GetFocus so that if the existing pointer to the focused track is null, then use the track at the same position, if it exists.
2018-06-26 09:13:29 +01:00
Steve Daulton
95ef41413c Better fix for bug 1891
Also reverts previous fix attempts.
2018-06-21 23:54:38 +01:00
Paul Licameli
47665836c7 Enh 1890: Allow P&R when cursor is exactly at track end...
... but then adjust time leftward a little, so there is some crossfade
2018-06-21 18:15:25 -04:00
Paul Licameli
a3312f4ae0 Guard against negative values for P&R preferences 2018-06-21 18:01:59 -04:00
Paul Licameli
d76597287a Need acquire ordering in RingBuffer::Clear() too; and comments 2018-06-21 15:23:45 -04:00
Paul Licameli
fcdfd68d73 Stricter memory ordering in RingBuffer 2018-06-21 13:40:01 -04:00
Paul Licameli
bd7e6f7279 Avoid false sharing of the two atomic variables of RingBuffer 2018-06-21 13:10:30 -04:00
Steve Daulton
f145574dd6 Fix for 1891 is specific to Mac / Linux
This is only really a temporary fix - we should be using the
standard "Manage" button, but imo Equalization require a
thorough overhaul.
2018-06-21 15:55:20 +01:00
Paul Licameli
8a158c741e String and dialog changes related to Punch and Roll 2018-06-21 01:35:59 -04:00
Paul Licameli
46fb2960c0 Links to help for errors in usage of P&R 2018-06-20 23:02:22 -04:00
Paul Licameli
76282a1da1 Simply "Pre-roll:" not "Pre-roll duration:" 2018-06-20 22:56:54 -04:00
Paul Licameli
cbe6c9eb46 "Time shift for record" replaces "Track shift after record" 2018-06-20 22:55:28 -04:00
Paul Licameli
3b11093766 Change message for Punch and Roll when track selection is inappropriate 2018-06-20 22:53:47 -04:00
Paul-Licameli
af62506175 Update pointer to our wxWidgets custom branch in build texts 2018-06-19 22:50:34 -04:00
Paul Licameli
22f48d31e1 Rewrite RingBuffer with standard atomics...
... Contrary to the old comments, this class was no longer thread safe with
multi-core, because of the possibility of out-of-order reads and writes.

Use the minimal necessary memory ordering, not the default and maybe expensive
std::memory_order_seq_cst

At least one clicky recording has been seen where many small groups of
samples, a common power in two in size, seem to get displaced rightward.

I suspect out of order reads and writes might have caused that and this commit
might prevent it.
2018-06-19 14:04:34 -04:00
Paul Licameli
58fa401faf Don't disable accessibility in Mac build of wxWidgets for Audacity 2018-06-19 09:26:00 -04:00
Steve Daulton
6cff61535b Fix bug 1891 (EQ crash)
This fixes only the crash bug. This effect needs substantial attention.
2018-06-19 11:58:45 +01:00
Steve Daulton
5cdf642133 Fix Travis build 2018-06-18 22:14:38 +01:00
Steve Daulton
5543dc884a Update Sample Data Export to use file browser 2018-06-18 21:32:22 +01:00
Steve Daulton
5e219a031d Fix Factory Preset for Nyquist file browser
Expand platform independent keyword paths before
writing to pluginsettings.cfg.
2018-06-18 21:32:22 +01:00
David Bailes
c976630f40 MacroCommandDialog: add accessibility name for details text box 2018-06-18 14:23:15 +01:00
David Bailes
0c9dfc4933 More convenient shortcuts for selecting prev/next clip
The shortcuts for these commands were changed in commit e01122e841fc25cd004ecea77b1665015700f937 to avoid conflicts with the access keys of menus.
They were changed to Ctrl+Alt+P/N. These aren't very convenient for typing, so this commit changes them to Alt+comma/period.
2018-06-18 13:58:14 +01:00
Steve Daulton
60204730e7 Update Sample Data Import to use file browser
Also temporarily change type from 'tool' to 'generate' to allow testing
while Tools menu still has problems.
2018-06-15 12:59:11 +01:00
Steve Daulton
c8c93319ec File browser widget for Nyquist plug-ins 2018-06-14 21:27:48 +01:00
Paul Licameli
d80d134415 Revert the changes in ring buffers, which didn't work for 24 bit format
* commit 'a0bf2892fa20009a798f28387fc0e96bbe3260a0':
  Revert "Possibly correct some cases of clicky playback or corrupt recording..."
  Revert "Fix compilation on Windows."
  Revert "Fixes for new ring buffers..."
2018-06-13 19:08:56 -04:00
Paul Licameli
a0bf2892fa Revert "Possibly correct some cases of clicky playback or corrupt recording..."
This reverts commit 6dca4f785904fd870d6829dd51aa0c56803012dc.
2018-06-13 19:07:39 -04:00
Paul Licameli
8407ef1e6c Revert "Fix compilation on Windows."
This reverts commit 21e4847b90eae9fca29bfe3fb99beb66aec78d57.
2018-06-13 19:06:51 -04:00
Paul Licameli
5803c31801 Revert "Fixes for new ring buffers..."
This reverts commit 92d27c618b30c491dff038f4796b5cabbc41d673.
2018-06-13 19:06:41 -04:00
James Crook
66a87ecaa9 Disallow punch and roll from t=0.0
Punch and roll from 0.0 deletes the whole track before punch and rolling.
That is unlikely to be what the user intended, since there is then no audio
cue, so disallow it.

Also reduced indentation.
2018-06-13 17:00:09 +01:00
James Crook
ed34e6b029 Vaughan to emeritus in AboutDialog credits. 2018-06-12 21:00:36 +01:00
Paul Licameli
2c7ca97095 Reimplement change of color of playhead after pre-roll, more simply 2018-06-11 18:27:18 -04:00
Paul Licameli
77779395c7 Revert "Play head is green during pre-roll, then turns red for real recording"
This reverts commit 8e51391b98ad7a98f49c98929a10322dd551391f.
2018-06-11 18:23:56 -04:00
Paul Licameli
a72b8f98c0 Bug1883, more: fix logic for choosing start & end times of recording 2018-06-11 15:02:20 -04:00
Paul Licameli
14051f04cf Bug1887: crash or hang loop-playing with WASAPI; libsoxr 0.1.3 to blame...
... probably?  This is a workaround to prevent crashes in libsoxr that did
not happen with the previous version.
2018-06-11 14:05:00 -04:00
Paul Licameli
800ddf32e1 Bug1884: fix crash when record to new track and fail to open device 2018-06-10 17:30:22 -04:00
Paul Licameli
3051e9ce7e Stop button works during punch and roll recording 2018-06-09 15:43:17 -04:00
Paul Licameli
ed660bdca2 More apt argument name 2018-06-09 15:25:59 -04:00
Paul Licameli
8e51391b98 Play head is green during pre-roll, then turns red for real recording 2018-06-09 14:40:09 -04:00
Paul Licameli
e40420ba72 Rewrite logic for choosing append-record tracks...
... If recording one or two channels, use first unbroken subsequence within the
selected wave tracks for which the total of channels matches exactly; failing
that, use such a sequence among all wave tracks; failing that, record to
new tracks.

If recording more than two channels, and there is at least one selected wave
track, then use the topmost selected wave channels, up to the number of
recording channels, and if fewer channels are selected, just drop the extra
input channels.

If recording more than two, and no wave tracks are selected, ignore existing
wave tracks and record to new tracks.

In any case, the tracks chosen for append-record might not be consecutive
among all the tracks, because non-wave or non-selected tracks may come between.
2018-06-09 13:26:00 -04:00
James Crook
5fc2100147
Remove duplication in Audacity.pot 2018-06-09 16:36:31 +01:00
Olivier Humbert
0880bef19e Fix typos in the French translation 2018-06-08 18:50:33 +01:00
David Bailes
b54f56fba0 Bug 1879 - Audacity resets project rate without warning.
These were the steps to reproduce:

Remember that the Realtek card in my new HP laptop *only* runs at 48000

1) Clear out the entire Audacity config/settings folder for virgin running
2) Launch Audacity  audacity-2.3.0-alpha-20-a22be24ae3a224c90688504f8ff323c41f8c9c35
3) set recording for WASAPI/loopback (or WASAPI/mic)
4) press Record
5) Track records properly
6) rate shown in TCP is 44100
7) Project rate at bottom left shows 44100
8) Exit Audacity

9) Relaunch Audacity
10) Project rate at bottom left now shows 48000
11) Press Record
12) Track records OK - but at 48000 obviously

The problem: the default sample rate is read in like this:
gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), &mRate, AudioIO::GetOptimalSupportedSampleRate());

- the default is not fixed, it can vary with host/device.

Fix: Ensure that there is always an entry for the default sample rate in audacity.cfg
2018-06-07 14:42:39 +01:00
David Bailes
122607f180 Fix selection contract left/right commands
problem: The commit 1ccd2678b6985759915fe420c74a094361420dc2 swapped the actions of these two commands.

Fix: swap them back to their original actions:
Selection contract left: contracts the selection by moving its left hand end to the right.
Selection contract right: contracts the selection by moving its right hand end to the left.
2018-06-07 09:21:45 +01:00
Steve Daulton
0ac3ed8453
Update Sequence.cpp
Fix crash on Linux when recovering project where samples read do not match expected number of samples.
2018-06-05 18:14:36 +01:00