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:
@@ -9,7 +9,7 @@ public:
|
||||
virtual int GetLength() const = 0; /* ms */
|
||||
virtual int GetLength_Fast() const { return GetLength(); } /* ms */
|
||||
virtual int SetPosition( int iSample ) = 0;
|
||||
virtual int Read( char *pBuf, int iFrames ) = 0;
|
||||
virtual int Read( int16_t *pBuf, int iFrames ) = 0;
|
||||
virtual ~RageSoundReader() { }
|
||||
virtual RageSoundReader *Copy() const = 0;
|
||||
virtual int GetSampleRate() const = 0;
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
virtual float GetStreamToSourceRatio() const = 0;
|
||||
|
||||
virtual RString GetError() const = 0;
|
||||
int RetriedRead( char *pBuffer, int iFrames, int *iSourceFrame = NULL, float *fRate = NULL );
|
||||
int RetriedRead( int16_t *pBuffer, int iFrames, int *iSourceFrame = NULL, float *fRate = NULL );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user