7 #include "IAudioDecoder.h" 8 #include "cMemoryOverride.h" 24 virtual bool setPosition(
int position,
bool relative);
25 virtual bool seek(
float seconds,
bool relative);
32 virtual cAudioString
getType()
const;
35 unsigned int Frequency;
Interface for data providers in cAudio.
virtual int readAudioData(void *output, int amount)
Reads a section of data out of the audio stream.
virtual AudioFormats getFormat()
Returns the format of the audio data.
virtual int getCurrentCompressedPosition()
Returns the position in the compressed (original) audio stream before decoding.
virtual int getFrequency()
Returns the frequency (sample rate) of the audio data.
virtual int getTotalSize()
If available, returns the total decoded size of the audio stream. Returns a negative number if this c...
virtual float getCurrentTime()
If seeking is supported, will return the current position in the stream in seconds. Returns a negative number if the current time cannot be determined.
virtual int getCompressedSize()
Returns the compressed (original) size of the audio stream, before decoding.
virtual bool seek(float seconds, bool relative)
If seeking is supported, will seek the stream to seconds.
virtual bool isValid()
Returns whether the stream is valid for this codec.
virtual cAudioString getType() const
Returns the IAudioDecoderType.
virtual bool isSeekingSupported()
Returns whether seeking is supported.
virtual int getCurrentPosition()
If available, returns the current position in the decoded audio stream in bytes. Returns a negative n...
virtual bool setPosition(int position, bool relative)
Sets the position in the stream to read from.
virtual float getTotalTime()
If seeking is supported, will return the length of the audio steam in seconds. Returns a negative num...
Overrides the memory allocations for classes derived from it and makes them use the cAudio memory sys...
Interface for all Audio Decoders in cAudio.
AudioFormats
Enumeration of audio formats supported by the engine.
Main namespace for the entire cAudio library.