remove iRate param

This commit is contained in:
Glenn Maynard
2006-12-13 09:15:29 +00:00
parent 0f76adec67
commit 2377925f41
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ void AutoKeysounds::FinishLoading()
/* Load the BGM. */
RageSoundReader_Chain *pChain = new RageSoundReader_Chain;
pChain->SetPreferredSampleRate( SOUNDMAN->GetDriverSampleRate(44100) );
pChain->SetPreferredSampleRate( SOUNDMAN->GetDriverSampleRate() );
Song* pSong = GAMESTATE->m_pCurSong;
pChain->AddSound( pChain->LoadSound(pSong->GetMusicPath()), 0, 0 );
+1 -1
View File
@@ -241,7 +241,7 @@ void RageSound::LoadSoundReader( RageSoundReader *pSound )
m_iStreamFrame = m_iSourceFrame = m_iStoppedSourceFrame = 0;
const int iNeededRate = SOUNDMAN->GetDriverSampleRate( pSound->GetSampleRate() );
const int iNeededRate = SOUNDMAN->GetDriverSampleRate();
bool bSupportRateChange = false;
if( iNeededRate != pSound->GetSampleRate() || bSupportRateChange )
{
+1 -1
View File
@@ -236,7 +236,7 @@ float RageSoundManager::GetPlayLatency() const
return m_pDriver->GetPlayLatency();
}
int RageSoundManager::GetDriverSampleRate( int iRate ) const
int RageSoundManager::GetDriverSampleRate() const
{
if( m_pDriver == NULL )
return 44100;
+1 -1
View File
@@ -43,7 +43,7 @@ public:
int GetUniqueID(); /* used by RageSound */
void CommitPlayingPosition( int ID, int64_t frameno, int64_t pos, int got_bytes ); /* used by drivers */
float GetPlayLatency() const;
int GetDriverSampleRate( int iRate ) const;
int GetDriverSampleRate() const;
/* When deleting a sound from any thread except the one calling Update(), this
* must be used to prevent race conditions. */