RageSoundReader::Read(char *) -> int16_t *. This was originally
char * based on the idea of supporting more than one sample type. I don't plan to do that (though I may change the sample type to float or int32).
This commit is contained in:
@@ -15,14 +15,14 @@ RageSoundReader_PostBuffering::RageSoundReader_PostBuffering( RageSoundReader *p
|
||||
}
|
||||
|
||||
|
||||
int RageSoundReader_PostBuffering::Read( char *pBuf, int iFrames )
|
||||
int RageSoundReader_PostBuffering::Read( int16_t *pBuf, int iFrames )
|
||||
{
|
||||
iFrames = m_pSource->Read( pBuf, iFrames );
|
||||
if( iFrames < 0 )
|
||||
return iFrames;
|
||||
|
||||
if( m_fVolume != 1.0f )
|
||||
RageSoundUtil::Attenuate( (int16_t *) pBuf, iFrames * this->GetNumChannels(), m_fVolume );
|
||||
RageSoundUtil::Attenuate( pBuf, iFrames * this->GetNumChannels(), m_fVolume );
|
||||
|
||||
return iFrames;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user