1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 15:20:15 +02:00

Allow speed slider to persist across toolbar reset

This commit is contained in:
lllucius 2015-01-01 20:27:29 +00:00
parent 6459324b4c
commit 2e6e110a34

View File

@ -84,7 +84,7 @@ END_EVENT_TABLE()
TranscriptionToolBar::TranscriptionToolBar()
: ToolBar(TranscriptionBarID, _("Transcription"), wxT("Transcription"))
{
mPlaySpeed = 1.0;
mPlaySpeed = 1.0 * 100.0;
mTimeTrack = NULL;
#ifdef EXPERIMENTAL_VOICE_DETECTION
mVk = new VoiceKey();
@ -192,7 +192,7 @@ void TranscriptionToolBar::Populate()
wxDefaultPosition,
wxSize(SliderWidth,25),
SPEED_SLIDER);
mPlaySpeedSlider->Set(1.0);
mPlaySpeedSlider->Set(mPlaySpeed / 100.0);
mPlaySpeedSlider->SetLabel(_("Playback Speed"));
// 6 steps using page up/down, and 60 using arrow keys
mPlaySpeedSlider->SetScroll(0.16667f, 1.6667f);