set m_fRate directly
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user