cleanup
This commit is contained in:
@@ -260,16 +260,14 @@ void RageSound::LoadSoundReader( RageSoundReader *pSound )
|
|||||||
/* Get a block of data from the input. */
|
/* Get a block of data from the input. */
|
||||||
int RageSound::GetData( char *pBuffer, int iFrames )
|
int RageSound::GetData( char *pBuffer, int iFrames )
|
||||||
{
|
{
|
||||||
int iGotFrames = 0;
|
|
||||||
float fRate = 1.0f;
|
|
||||||
int iSourceFrame = m_iSourceFrame;
|
|
||||||
|
|
||||||
if( iFrames == 0 )
|
if( iFrames == 0 )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Read data from our source. */
|
/* Read data from our source. */
|
||||||
ASSERT( m_pSource );
|
ASSERT( m_pSource );
|
||||||
iGotFrames = m_pSource->RetriedRead( pBuffer, iFrames, &iSourceFrame, &fRate );
|
int iSourceFrame;
|
||||||
|
float fRate = 1.0f;
|
||||||
|
int iGotFrames = m_pSource->RetriedRead( pBuffer, iFrames, &iSourceFrame, &fRate );
|
||||||
|
|
||||||
if( iGotFrames == RageSoundReader::ERROR )
|
if( iGotFrames == RageSoundReader::ERROR )
|
||||||
Fail( m_pSource->GetError() );
|
Fail( m_pSource->GetError() );
|
||||||
|
|||||||
Reference in New Issue
Block a user