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

8714 Commits

Author SHA1 Message Date
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
Steve Daulton
0fc4c2de7a Remove trailing comma 2018-05-28 12:44:45 +01:00
Paul Licameli
f32073412b Fix precision of right edge of punch-in when not overdubbing too 2018-05-26 23:59:21 -04:00
Paul Licameli
f0ebf5823a Better punch-in precision: quantize start and end times for rate...
... So that samples of a new track align precisely with the old track, at least
in case the old track has the same rate and starts exactly at 0, which is
the likely usual case.
2018-05-26 23:46:41 -04:00
Paul Licameli
a3abacd55d Adjust for latency as you record, don't wait till after stopping...
... Adjust whenever recording, regardless whether there is any overdub
playback too.

May adjust by discarding samples when the Track Shift after Record preference
is negative (as by default); or, by inserting silence into the start of the
recording, when that preference is positive, though that may be less useful.

Perhaps the preference control should no longer be called "Track Shift after
Record."
2018-05-25 07:21:46 -04:00
Paul Licameli
bbe54f47ca a null check would have fixed crash at 902e1ab0a1 when recording...
... a mono channel into the left side of a stereo track; crash was in drawing;

other code now prevents such recording, but that prevention might be revised
again.
2018-05-24 18:38:04 -04:00
Paul Licameli
0887d6d01e When recording into region selection, stop it precisely 2018-05-24 17:05:44 -04:00
Paul Licameli
92d27c618b Fixes for new ring buffers...
... A problem was that play button did not pop back up when one of the
tracks was mute.

Also no longer need mac-specific conditional compilation.
2018-05-24 16:35:12 -04:00
Paul Licameli
3e680852fd Update audacity.pot 2018-05-24 14:46:04 -04:00
Steve Daulton
ae908a9bc4 Update Mac Build.txt (fixes bug 1878)
wxWidgets must be cloned with --recurse-submodules.
2018-05-24 13:20:53 +01:00
Steve Daulton
126ded7d9a Update credits
Added section for website and graphics.
2018-05-24 13:20:53 +01:00
Steve Daulton
fdf165d133 Clarify comment 2018-05-24 13:20:53 +01:00
Steve Daulton
a2765d013f Remove duplicate project pointer 2018-05-24 13:20:53 +01:00
Steve Daulton
41315dac95 Make comment clearer 2018-05-24 13:20:53 +01:00
Paul Licameli
b3bf321893 Rewrite threshold control of Truncate Silence as text box, not a choice 2018-05-23 23:56:30 -04:00
David Bailes
a22be24ae3 Bug 1863: Windows crash when resampling in WASAPI
Problem: soxr_process doesn't like being called with length of buffers equal to zero.

Fix: don't call it, when this is the case.
2018-05-22 11:34:12 +01:00
Paul Licameli
318967f00d Revert "If record overrides append because of channel count, record unlimited"
This reverts commit b36482d6494063e6799f793ed5e6b9b696125b1a.
2018-05-17 21:22:31 -04:00
Paul Licameli
1269fff8e1 Ignore the time track during overdub recording. 2018-05-17 15:49:53 -04:00
David Bailes
4221549ec9 NumericTextCtrl: fix minor bug with NVDA screen reader
Problem: with using up/down arrow NVDA reads the updated field twice.

Fix: remove generation of an unnecessary event.
2018-05-16 14:10:53 +01:00