1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 14:16:28 +01:00

Overdub off by default only in DA.

This commit is contained in:
James Crook
2017-06-26 19:44:39 +01:00
parent bbab89b52c
commit 30ec8a1c90
3 changed files with 21 additions and 2 deletions

View File

@@ -981,8 +981,11 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
NoteTrackArray midiTracks;
#endif
bool duplex;
#ifdef EXPERIMENTAL_DA
gPrefs->Read(wxT("/AudioIO/Duplex"), &duplex, false);
#else
gPrefs->Read(wxT("/AudioIO/Duplex"), &duplex, true);
#endif
if(duplex){
playbackTracks = trackList->GetWaveTrackConstArray(false);
#ifdef EXPERIMENTAL_MIDI_OUT
@@ -1383,8 +1386,11 @@ void ControlToolBar::StartScrolling()
// If you overdub, you may want to anticipate some context in existing tracks,
// so center the head. If not, put it rightmost to display as much wave as we can.
bool duplex;
#ifdef EXPERIMENTAL_DA
gPrefs->Read(wxT("/AudioIO/Duplex"), &duplex, false);
#else
gPrefs->Read(wxT("/AudioIO/Duplex"), &duplex, true);
#endif
if (duplex) {
// See if there is really anything being overdubbed
if (gAudioIO->GetNumPlaybackChannels() == 0)