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

8732 Commits

Author SHA1 Message Date
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
David Bailes
a771faa492 Scriptable GetInfo crashes when Type is preferences.
This was caused by my commit: f9ee3cdc45ab3c5530505daa119ef01ccfdcc262
When void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S) is called for the purposes of GetInfo, the pointers to the radio buttons are null, so need to check for this before calls to SetAccessible.
2018-06-04 16:07:06 +01:00
James Crook
d09987da9c Use 'Playing' and 'Recording' in Transport Menu.
This is then consistent with 'Scrubbing' as the next entry.
2018-06-03 10:46:40 +01:00
Paul Licameli
0965e9fbd2 Move the Punch and Roll item to the Record sub-menu 2018-06-01 12:59:56 -04:00
Paul Licameli
c0fb140257 Fix crashes in resampling of capture during recording 2018-06-01 12:53:26 -04:00
Paul Licameli
9e2937feed Punch and roll recording
menu item, tentative shortcut Shift+D ("do-over")
  Add to recording preferences for pre-roll and crossfade
  Define EXPERIMENTAL flag
  Recording options allow crossfade data for start of recording
  Stop playback of pre-rolled tracks at the right time
  Allow for preRoll in start-stream options
2018-06-01 04:31:40 -04:00
Paul Licameli
2892dfd956 menu item, tentative shortcut Shift+D ("do-over") 2018-06-01 04:29:01 -04:00
Paul Licameli
de230254bd Add to recording preferences for pre-roll and crossfade 2018-06-01 04:29:00 -04:00
Paul Licameli
11fd3dcc9d Define EXPERIMENTAL flag 2018-06-01 04:28:59 -04:00
Paul Licameli
a0256e935c Recording options allow crossfade data for start of recording 2018-06-01 04:28:58 -04:00
Paul Licameli
f9cd5595d5 Stop playback of pre-rolled tracks at the right time 2018-06-01 04:28:57 -04:00
Paul Licameli
35c60ac96d Allow for preRoll in start-stream options 2018-06-01 04:28:55 -04:00
Paul Licameli
20f3f76e2f Correct limit of record duration when track rate differs from input 2018-06-01 04:28:54 -04:00
James Crook
965a74cd9e
Merge pull request #211 from diddledan/patch-1
Use TMPDIR environment variable, if present.
2018-05-31 17:39:59 +01:00
Paul Licameli
35a97e09e7 Group arguments to StartStream, and a bit less of #ifdef for MIDI play...
... And pull choice of tracks and options out of DoRecord
2018-05-29 00:22:12 -04:00
Paul Licameli
0635f8802b Fix build 2018-05-28 16:48:04 -04:00
Paul Licameli
49899a561d fix build 2018-05-28 16:30:12 -04:00
Paul Licameli
f355320e5d Don't lose the fractional part of latency prefernce setting! 2018-05-28 16:13:45 -04:00
Paul Licameli
f52b53fc50 Factor ControlToolBar::OnRecord...
... pulling out the function that chooses existing tracks for append-record,
and a function that does the recording once tracks are chosen.
2018-05-28 15:59:20 -04:00
Paul Licameli
c7f97e7730 Bug1880: don't quantize DBL_MAX resulting in a negative value. 2018-05-28 13:28:08 -04:00