From bf1c726c80bd5c03a4a954ca5bedec270580d24b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 30 Nov 2006 06:42:51 +0000 Subject: [PATCH] set m_fRate directly --- stepmania/src/ScreenEdit.cpp | 2 +- stepmania/src/ScreenGameplay.cpp | 4 ++-- stepmania/src/ScreenTestSound.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 177ca5a29c..eb1f972664 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -2309,7 +2309,7 @@ void ScreenEdit::TransitionEditState( EditState em ) LOG->Trace( "Starting playback at %f", fStartSeconds ); RageSoundParams p; - p.SetPlaybackRate( GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate ); + p.m_fRate = GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate; p.m_StartSecond = fStartSeconds; p.m_bAccurateSync = true; p.StopMode = RageSoundParams::M_CONTINUE; diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index e309378c35..9a9cdb04ee 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1325,7 +1325,7 @@ float ScreenGameplay::StartPlayingSong(float MinTimeToNotes, float MinTimeToMusi RageSoundParams p; p.m_bAccurateSync = true; - p.SetPlaybackRate( GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate ); + p.m_fRate = GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate; p.StopMode = RageSoundParams::M_CONTINUE; p.m_StartSecond = fStartSecond; @@ -1483,7 +1483,7 @@ void ScreenGameplay::BeginScreen() RageSoundParams p; p.m_bAccurateSync = true; - p.SetPlaybackRate( 1.0 ); //Force 1.0 playback speed + p.m_fRate = 1.0f; //Force 1.0 playback speed p.StopMode = RageSoundParams::M_CONTINUE; p.m_StartSecond = startOffset; m_pSoundMusic->Play( &p ); diff --git a/stepmania/src/ScreenTestSound.cpp b/stepmania/src/ScreenTestSound.cpp index 4e84f823ed..3cdc05143f 100644 --- a/stepmania/src/ScreenTestSound.cpp +++ b/stepmania/src/ScreenTestSound.cpp @@ -49,7 +49,7 @@ void ScreenTestSound::Init() // s[4].s.SetLengthSeconds(1); RageSoundParams p; p.StopMode = RageSoundParams::M_STOP; - // p.SetPlaybackRate( 1.20f ); + // p.m_fRate = 1.20f; for( int i = 0; i < nsounds; ++i ) s[i].s.SetParams( p );