41 return _decoder->
getSamples(buffer,numSamples);
Definition: MpAudioAbstract.h:30
MpAuRead(istream &s, int raw=0)
Definition: mpau.cpp:19
Definition: MpAudioFileDecompress.h:25
~MpAuRead()
Definition: mpau.h:37
size_t readBytes(AudioByte *buffer, size_t length)
read length of bytes
Definition: mpau.cpp:37
int m_CompressionType
Definition: mpau.h:26
void minMaxSamplingRate(long *min, long *max, long *preferred)
TODO: the meaning of this function, get the prefered Sampling rate.
Definition: mpau.h:56
size_t getBytesSize()
get bytes size of the audio file
Definition: mpau.cpp:46
size_t _dataLength
Definition: mpau.h:44
istream & mStream
Definition: mpau.h:25
int _headerChannels
channels from header
Definition: mpau.h:52
void ReadHeader(void)
Definition: mpau.cpp:51
bool isAuFile(istream &file)
Definition: mpau.cpp:30
AuDecompressionType
Definition: mpau.h:29
bool _headerRead
true if header has already been read
Definition: mpau.h:51
AbstractDecompressor * _decoder
Definition: mpau.h:27
unsigned char AudioByte
Definition: MpAudioAbstract.h:22
short AudioSample
Definition: MpAudioAbstract.h:21
size_t getSamples(AudioSample *buffer, size_t numSamples)
Returns number of samples actually read, 0 on error.
Definition: mpau.h:40
int getDecompressionType()
get decompression type of the audio file
Definition: mpau.h:47
int _headerRate
sampling rate from header
Definition: mpau.h:53
virtual size_t getSamples(AudioSample *, size_t)=0
void minMaxChannels(int *min, int *max, int *preferred)
Get prefered channel.
Definition: mpau.h:60