mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Add to recording preferences for pre-roll and crossfade
This commit is contained in:
parent
11fd3dcc9d
commit
de230254bd
@ -85,6 +85,12 @@ class AudioIOListener;
|
||||
#define DEFAULT_LATENCY_DURATION 100.0
|
||||
#define DEFAULT_LATENCY_CORRECTION -130.0
|
||||
|
||||
#define AUDIO_PRE_ROLL_KEY (wxT("/AudioIO/PreRoll"))
|
||||
#define DEFAULT_PRE_ROLL_SECONDS 5.0
|
||||
|
||||
#define AUDIO_ROLL_CROSSFADE_KEY (wxT("/AudioIO/Crossfade"))
|
||||
#define DEFAULT_ROLL_CROSSFADE_MS 10.0
|
||||
|
||||
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||
#define AILA_DEF_TARGET_PEAK 92
|
||||
#define AILA_DEF_DELTA_PEAK 2
|
||||
|
@ -19,6 +19,7 @@
|
||||
*//********************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "../Experimental.h"
|
||||
#include "RecordingPrefs.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
@ -222,8 +223,33 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
S.EndStatic();
|
||||
#endif
|
||||
S.EndScroller();
|
||||
|
||||
#ifdef EXPERIMENTAL_PUNCH_AND_ROLL
|
||||
S.StartStatic(_("Punch and Roll Recording"));
|
||||
{
|
||||
S.StartThreeColumn();
|
||||
{
|
||||
auto w = S.TieNumericTextBox(_("Pre-ro&ll duration:"),
|
||||
AUDIO_PRE_ROLL_KEY,
|
||||
DEFAULT_PRE_ROLL_SECONDS,
|
||||
9);
|
||||
S.AddUnits(_("seconds"));
|
||||
w->SetName(w->GetName() + wxT(" ") + _("seconds"));
|
||||
}
|
||||
{
|
||||
auto w = S.TieNumericTextBox(_("Cross&fade:"),
|
||||
AUDIO_ROLL_CROSSFADE_KEY,
|
||||
DEFAULT_ROLL_CROSSFADE_MS,
|
||||
9);
|
||||
S.AddUnits(_("milliseconds"));
|
||||
w->SetName(w->GetName() + wxT(" ") + _("milliseconds"));
|
||||
}
|
||||
S.EndThreeColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
#endif
|
||||
|
||||
S.EndScroller();
|
||||
}
|
||||
|
||||
bool RecordingPrefs::Commit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user