specify source and dest sample rate in the ctor; they don't change

This commit is contained in:
Glenn Maynard
2006-11-29 02:45:40 +00:00
parent 7c56fe71dd
commit 1146c57dc8
4 changed files with 7 additions and 25 deletions
+1 -3
View File
@@ -223,9 +223,7 @@ void RageSound::LoadSoundReader( RageSoundReader *pSound )
const int iNeededRate = SOUNDMAN->GetDriverSampleRate( pSound->GetSampleRate() );
if( iNeededRate != pSound->GetSampleRate() )
{
RageSoundReader_Resample_Good *Resample = new RageSoundReader_Resample_Good;
Resample->Open( pSound );
Resample->SetSampleRate( iNeededRate );
RageSoundReader_Resample_Good *Resample = new RageSoundReader_Resample_Good( pSound, iNeededRate );
pSound = Resample;
}