22 #ifndef FIFE_SOUNDDECODER_H 23 #define FIFE_SOUNDDECODER_H 72 virtual bool decode(uint64_t length) = 0;
100 return m_is8bit ? AL_FORMAT_STEREO8 : AL_FORMAT_STEREO16;
102 return m_is8bit ? AL_FORMAT_MONO8 : AL_FORMAT_MONO16;
bool needsStreaming() const
A stream or not?
uint64_t getSampleRate() const
Returns the sample rate.
virtual void releaseBuffer()=0
Releases the buffer returned by getBuffer()
virtual uint64_t getBufferSize()=0
Returns the byte-size of the buffer returned by getBuffer().
virtual void * getBuffer() const =0
Returns the next decoded buffer.
virtual bool decode(uint64_t length)=0
Request the decoding of the next part of the stream.
const uint32_t MAX_KEEP_IN_MEM
bool isStereo() const
Tests if the audio data is stereo data or mono.
virtual uint64_t getDecodedLength() const =0
Returns the decoded length of the file in bytes.
virtual bool setCursor(uint64_t pos)=0
Sets the current position in the file (in bytes)
int16_t getBitResolution() const
Returns the bit resolution.
ALenum getALFormat() const
Returns the openAL-Format of the audio file.