mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 15:39:27 +02:00
Overdub off by default only in DA.
This commit is contained in:
parent
bbab89b52c
commit
30ec8a1c90
@ -2157,7 +2157,11 @@ void AudacityProject::ModifyToolbarMenus()
|
||||
active = TracksPrefs::GetPinnedHeadPreference();
|
||||
mCommandManager.Check(wxT("PinnedHead"), active);
|
||||
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
gPrefs->Read(wxT("/AudioIO/Duplex"),&active, false);
|
||||
#else
|
||||
gPrefs->Read(wxT("/AudioIO/Duplex"),&active, true);
|
||||
#endif
|
||||
mCommandManager.Check(wxT("Duplex"), active);
|
||||
gPrefs->Read(wxT("/AudioIO/SWPlaythrough"),&active, false);
|
||||
mCommandManager.Check(wxT("SWPlaythrough"), active);
|
||||
@ -2721,7 +2725,11 @@ void AudacityProject::OnTogglePinnedHead()
|
||||
void AudacityProject::OnTogglePlayRecording()
|
||||
{
|
||||
bool Duplex;
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
gPrefs->Read(wxT("/AudioIO/Duplex"), &Duplex, false);
|
||||
#else
|
||||
gPrefs->Read(wxT("/AudioIO/Duplex"), &Duplex, true);
|
||||
#endif
|
||||
gPrefs->Write(wxT("/AudioIO/Duplex"), !Duplex);
|
||||
gPrefs->Flush();
|
||||
ModifyAllProjectToolbarMenus();
|
||||
|
@ -73,7 +73,12 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.TieCheckBox(_("&Other tracks while recording"),
|
||||
wxT("/AudioIO/Duplex"),
|
||||
#ifdef EXPERIMENTAL_DA
|
||||
false);
|
||||
#else
|
||||
true);
|
||||
#endif
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
S.TieCheckBox(_("&Hardware Playthrough of input"),
|
||||
wxT("/AudioIO/Playthrough"),
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user