mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Move record-new-track option
It's now in recording-prefs rather than track-behavior-prefs, and to make room latency options (which are related to device) ar enow in device-prefs. Naming of new tracks has also been made slightly more compact.
This commit is contained in:
parent
6a33e8303a
commit
f0bdfc10b5
@ -161,6 +161,35 @@ void DevicePrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
|
// These previously lived in recording preferences.
|
||||||
|
// However they are liable to become device specific.
|
||||||
|
// Buffering also affects playback, not just recording, so is a device characteristic.
|
||||||
|
S.StartStatic( _("Latency"));
|
||||||
|
{
|
||||||
|
S.StartThreeColumn();
|
||||||
|
{
|
||||||
|
wxTextCtrl *w;
|
||||||
|
// only show the following controls if we use Portaudio v19, because
|
||||||
|
// for Portaudio v18 we always use default buffer sizes
|
||||||
|
w = S.TieNumericTextBox(_("Audio to &buffer:"),
|
||||||
|
wxT("/AudioIO/LatencyDuration"),
|
||||||
|
DEFAULT_LATENCY_DURATION,
|
||||||
|
9);
|
||||||
|
S.AddUnits(_("milliseconds (higher = more latency)"));
|
||||||
|
w->SetName(w->GetName() + wxT(" ") + _("milliseconds (higher = more latency)"));
|
||||||
|
|
||||||
|
w = S.TieNumericTextBox(_("L&atency correction:"),
|
||||||
|
wxT("/AudioIO/LatencyCorrection"),
|
||||||
|
DEFAULT_LATENCY_CORRECTION,
|
||||||
|
9);
|
||||||
|
S.AddUnits(_("milliseconds (negative = backwards)"));
|
||||||
|
w->SetName(w->GetName() + wxT(" ") + _("milliseconds (negative = backwards)"));
|
||||||
|
}
|
||||||
|
S.EndThreeColumn();
|
||||||
|
}
|
||||||
|
S.EndStatic();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DevicePrefs::OnHost(wxCommandEvent & e)
|
void DevicePrefs::OnHost(wxCommandEvent & e)
|
||||||
|
@ -67,8 +67,6 @@ void RecordingPrefs::Populate()
|
|||||||
|
|
||||||
void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||||
{
|
{
|
||||||
wxTextCtrl *w;
|
|
||||||
|
|
||||||
S.SetBorder(2);
|
S.SetBorder(2);
|
||||||
|
|
||||||
S.StartStatic(_("Playthrough"));
|
S.StartStatic(_("Playthrough"));
|
||||||
@ -90,30 +88,6 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
S.StartStatic( _("Latency"));
|
|
||||||
{
|
|
||||||
S.StartThreeColumn();
|
|
||||||
{
|
|
||||||
// only show the following controls if we use Portaudio v19, because
|
|
||||||
// for Portaudio v18 we always use default buffer sizes
|
|
||||||
w = S.TieNumericTextBox(_("Audio to &buffer:"),
|
|
||||||
wxT("/AudioIO/LatencyDuration"),
|
|
||||||
DEFAULT_LATENCY_DURATION,
|
|
||||||
9);
|
|
||||||
S.AddUnits(_("milliseconds (higher = more latency)"));
|
|
||||||
w->SetName(w->GetName() + wxT(" ") + _("milliseconds (higher = more latency)"));
|
|
||||||
|
|
||||||
w = S.TieNumericTextBox(_("L&atency correction:"),
|
|
||||||
wxT("/AudioIO/LatencyCorrection"),
|
|
||||||
DEFAULT_LATENCY_CORRECTION,
|
|
||||||
9);
|
|
||||||
S.AddUnits(_("milliseconds (negative = backwards)"));
|
|
||||||
w->SetName(w->GetName() + wxT(" ") + _("milliseconds (negative = backwards)"));
|
|
||||||
}
|
|
||||||
S.EndThreeColumn();
|
|
||||||
}
|
|
||||||
S.EndStatic();
|
|
||||||
|
|
||||||
S.StartStatic(_("Sound Activated Recording"));
|
S.StartStatic(_("Sound Activated Recording"));
|
||||||
{
|
{
|
||||||
S.TieCheckBox(_("Sound Activated &Recording"),
|
S.TieCheckBox(_("Sound Activated &Recording"),
|
||||||
@ -135,34 +109,55 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
S.StartStatic(_("Naming newly recorded tracks"));
|
S.StartStatic(_("Name newly recorded tracks"));
|
||||||
{
|
{
|
||||||
S.StartMultiColumn(3);
|
// Nested multicolumns to indent by 'With:' width, in a way that works if
|
||||||
|
// translated.
|
||||||
|
// This extra step is worth doing to get the check boxes lined up nicely.
|
||||||
|
S.StartMultiColumn( 2 );
|
||||||
{
|
{
|
||||||
S.Id(UseCustomTrackNameID).TieCheckBox(_("Use Custom Track &Name"),
|
S.AddFixedText(_("With:")) ;
|
||||||
wxT("/GUI/TrackNames/RecordingNameCustom"),
|
S.StartMultiColumn(3);
|
||||||
mUseCustomTrackName ? true : false);
|
{
|
||||||
|
S.Id(UseCustomTrackNameID).TieCheckBox(_("Custom Track &Name"),
|
||||||
|
wxT("/GUI/TrackNames/RecordingNameCustom"),
|
||||||
|
mUseCustomTrackName ? true : false);
|
||||||
|
|
||||||
mToggleCustomName = S.TieTextBox(wxT(""),
|
mToggleCustomName = S.TieTextBox(wxT(""),
|
||||||
wxT("/GUI/TrackNames/RecodingTrackName"),
|
wxT("/GUI/TrackNames/RecodingTrackName"),
|
||||||
_("Recorded_Audio"),
|
_("Recorded_Audio"),
|
||||||
30);
|
30);
|
||||||
mToggleCustomName->SetName(_("Custom name text"));
|
mToggleCustomName->SetName(_("Custom name text"));
|
||||||
mToggleCustomName->Enable(mUseCustomTrackName);
|
mToggleCustomName->Enable(mUseCustomTrackName);
|
||||||
|
}
|
||||||
|
S.EndMultiColumn();
|
||||||
|
|
||||||
|
S.AddFixedText( "" );
|
||||||
|
S.StartMultiColumn(3);
|
||||||
|
{
|
||||||
|
S.TieCheckBox(_("&Track Number"),
|
||||||
|
wxT("/GUI/TrackNames/TrackNumber"),
|
||||||
|
false);
|
||||||
|
|
||||||
|
S.TieCheckBox(_("System &Date"),
|
||||||
|
wxT("/GUI/TrackNames/DateStamp"),
|
||||||
|
false);
|
||||||
|
|
||||||
|
S.TieCheckBox(_("System T&ime"),
|
||||||
|
wxT("/GUI/TrackNames/TimeStamp"),
|
||||||
|
false);
|
||||||
|
}
|
||||||
|
S.EndMultiColumn();
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
|
}
|
||||||
|
S.EndStatic();
|
||||||
|
|
||||||
S.TieCheckBox(_("Add &Track Number"),
|
S.StartStatic(_("Options"));
|
||||||
wxT("/GUI/TrackNames/TrackNumber"),
|
{
|
||||||
false);
|
S.TieCheckBox(_("Record appends, instead of recording new track"),
|
||||||
|
wxT("/GUI/PreferAppendRecord"),
|
||||||
S.TieCheckBox(_("Add System &Date"),
|
true);
|
||||||
wxT("/GUI/TrackNames/DateStamp"),
|
|
||||||
false);
|
|
||||||
|
|
||||||
S.TieCheckBox(_("Add System T&ime"),
|
|
||||||
wxT("/GUI/TrackNames/TimeStamp"),
|
|
||||||
false);
|
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
|
@ -63,9 +63,6 @@ void TracksBehaviorsPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.TieCheckBox(_("&Select then act on entire project, if no audio selected"),
|
S.TieCheckBox(_("&Select then act on entire project, if no audio selected"),
|
||||||
wxT("/GUI/SelectAllOnNone"),
|
wxT("/GUI/SelectAllOnNone"),
|
||||||
true);
|
true);
|
||||||
S.TieCheckBox(_("Append recordings to same track, by default"),
|
|
||||||
wxT("/GUI/PreferAppendRecord"),
|
|
||||||
true);
|
|
||||||
/* i18n-hint: cut-lines are a lines indicating where to cut.*/
|
/* i18n-hint: cut-lines are a lines indicating where to cut.*/
|
||||||
S.TieCheckBox(_("Enable cut &lines"),
|
S.TieCheckBox(_("Enable cut &lines"),
|
||||||
wxT("/GUI/EnableCutLines"),
|
wxT("/GUI/EnableCutLines"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user