RageSoundReader::Read(buf, unsigned bytes) -> (buf, int frames);

return value in frames, not bytes
This commit is contained in:
Glenn Maynard
2006-12-10 03:56:36 +00:00
parent 7bcb489288
commit 25e67dd4dc
23 changed files with 112 additions and 117 deletions
@@ -32,7 +32,7 @@ RageSoundReader_PitchChange::RageSoundReader_PitchChange( const RageSoundReader_
m_fPitchRatio = cpy.m_fPitchRatio;
}
int RageSoundReader_PitchChange::Read( char *pBuf, unsigned iLen )
int RageSoundReader_PitchChange::Read( char *pBuf, int iFrames )
{
/* Changing the ratios will tell the speed changer to change ratios, but it
* can't change immediately; it'll change on the next slice. The resampler
@@ -44,7 +44,7 @@ int RageSoundReader_PitchChange::Read( char *pBuf, unsigned iLen )
if( m_pSpeedChange->NextReadWillStep() )
m_pResample->SetRate( m_fPitchRatio );
return RageSoundReader_Filter::Read( pBuf, iLen );
return RageSoundReader_Filter::Read( pBuf, iFrames );
}
bool RageSoundReader_PitchChange::SetProperty( const RString &sProperty, float fValue )