mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-25 07:23:44 +02:00
Use a common method for the duration format in generators
This commit is contained in:
7
src/effects/ladspa/LadspaEffect.cpp
Normal file → Executable file
7
src/effects/ladspa/LadspaEffect.cpp
Normal file → Executable file
@@ -1146,17 +1146,14 @@ bool LadspaEffect::PopulateUI(wxWindow *parent)
|
||||
// Add the duration control for generators
|
||||
if (GetType() == EffectTypeGenerate)
|
||||
{
|
||||
bool isSelection;
|
||||
double duration = mHost->GetDuration(&isSelection);
|
||||
|
||||
item = new wxStaticText(w, 0, _("Duration:"));
|
||||
gridSizer->Add(item, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, 5);
|
||||
mDuration = new
|
||||
NumericTextCtrl(NumericConverter::TIME,
|
||||
w,
|
||||
ID_Duration,
|
||||
isSelection ? _("hh:mm:ss + samples") : _("hh:mm:ss + milliseconds"),
|
||||
duration,
|
||||
mHost->GetDurationFormat(),
|
||||
mHost->GetDuration(),
|
||||
mSampleRate,
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
|
||||
Reference in New Issue
Block a user