mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 23:30:07 +02:00
Allow speed slider to persist across toolbar reset
This commit is contained in:
parent
6459324b4c
commit
2e6e110a34
@ -84,7 +84,7 @@ END_EVENT_TABLE()
|
|||||||
TranscriptionToolBar::TranscriptionToolBar()
|
TranscriptionToolBar::TranscriptionToolBar()
|
||||||
: ToolBar(TranscriptionBarID, _("Transcription"), wxT("Transcription"))
|
: ToolBar(TranscriptionBarID, _("Transcription"), wxT("Transcription"))
|
||||||
{
|
{
|
||||||
mPlaySpeed = 1.0;
|
mPlaySpeed = 1.0 * 100.0;
|
||||||
mTimeTrack = NULL;
|
mTimeTrack = NULL;
|
||||||
#ifdef EXPERIMENTAL_VOICE_DETECTION
|
#ifdef EXPERIMENTAL_VOICE_DETECTION
|
||||||
mVk = new VoiceKey();
|
mVk = new VoiceKey();
|
||||||
@ -192,7 +192,7 @@ void TranscriptionToolBar::Populate()
|
|||||||
wxDefaultPosition,
|
wxDefaultPosition,
|
||||||
wxSize(SliderWidth,25),
|
wxSize(SliderWidth,25),
|
||||||
SPEED_SLIDER);
|
SPEED_SLIDER);
|
||||||
mPlaySpeedSlider->Set(1.0);
|
mPlaySpeedSlider->Set(mPlaySpeed / 100.0);
|
||||||
mPlaySpeedSlider->SetLabel(_("Playback Speed"));
|
mPlaySpeedSlider->SetLabel(_("Playback Speed"));
|
||||||
// 6 steps using page up/down, and 60 using arrow keys
|
// 6 steps using page up/down, and 60 using arrow keys
|
||||||
mPlaySpeedSlider->SetScroll(0.16667f, 1.6667f);
|
mPlaySpeedSlider->SetScroll(0.16667f, 1.6667f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user