RageSoundReader::Read(buf, unsigned bytes) -> (buf, int frames);
return value in frames, not bytes
This commit is contained in:
@@ -34,7 +34,7 @@ public:
|
||||
/* It rarely makes sense to set an approximate time for a chained sound, since any
|
||||
* error in overlap will become obvious. */
|
||||
int SetPosition_Fast( int iFrame ) { return SetPosition_Accurate( iFrame ); }
|
||||
int Read( char *buf, unsigned len );
|
||||
int Read( char *pBuf, int iFrames );
|
||||
int GetSampleRate() const { return m_iActualSampleRate; }
|
||||
unsigned GetNumChannels() const { return m_iChannels; }
|
||||
bool IsStreamingFromDisk() const;
|
||||
|
||||
Reference in New Issue
Block a user