set m_fRate directly

This commit is contained in:
Glenn Maynard
2006-11-30 06:42:51 +00:00
parent a0abc1a89e
commit bf1c726c80
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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 );
+1 -1
View File
@@ -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 );