cAudio
2.3.0
3d Audio Engine
|
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;
AudioFormats
Enumeration of audio formats supported by the engine.
virtual bool setPosition(int position, bool relative)
Sets the position in the stream to read from.
virtual bool isSeekingSupported()
Returns whether seeking is supported.
Overrides the memory allocations for classes derived from it and makes them use the cAudio memory sys...
Interface for all Audio Decoders in cAudio.
virtual AudioFormats getFormat()
Returns the format of the audio data.
Main namespace for the entire cAudio library.
virtual cAudioString getType() const
Returns the IAudioDecoderType.
virtual float getTotalTime()
If seeking is supported, will return the length of the audio steam in seconds. Returns a negative num...
virtual int getCurrentCompressedPosition()
Returns the position in the compressed (original) audio stream before decoding.
virtual bool isValid()
Returns whether the stream is valid for this codec.
virtual int getFrequency()
Returns the frequency (sample rate) of the audio data.
virtual int getCurrentPosition()
If available, returns the current position in the decoded audio stream in bytes. Returns a negative n...
virtual int getTotalSize()
If available, returns the total decoded size of the audio stream. Returns a negative number if this c...
virtual bool seek(float seconds, bool relative)
If seeking is supported, will seek the stream to seconds.
virtual int getCompressedSize()
Returns the compressed (original) size of the audio stream, before decoding.
Interface for data providers in cAudio.
virtual float getCurrentTime()
If seeking is supported, will return the current position in the stream in seconds....
virtual int readAudioData(void *output, int amount)
Reads a section of data out of the audio stream.