#include <cascade/av/CascadeAudioCodec.h>
Inheritance diagram for CascadeAudioCodec:
Public Types | |
enum | SamplePolarity { kSigned = 0, kUnsigned = 1 } |
enum | SampleEndianness { kLittleEndian = 0, kBigEndian = 1 } |
enum | SampleOrder { kLeftRight = 0, kRightLeft = 1 } |
Public Member Functions | |
CascadeAudioCodec () | |
virtual | ~CascadeAudioCodec () |
virtual CascadeStream * | GetOutputStream () |
virtual u64 | GetSize () |
virtual u64 | GetPosition () |
virtual bool | SeekToPosition (u64 nPosition) |
virtual u32 | GetSampleRate ()=0 |
virtual u32 | GetNumChannels ()=0 |
virtual u32 | GetBitsPerSample ()=0 |
virtual u32 | GetDurationInMilliseconds ()=0 |
virtual SamplePolarity | GetSamplePolarity ()=0 |
virtual SampleEndianness | GetSampleEndianness ()=0 |
virtual SampleOrder | GetSampleOrder ()=0 |
CascadeAudioCodec is the base class of simple stream based audio codecs.
|
|
|
|
|
|
|
constructor This constructor is light weight. |
|
destructor This destructor is light weight. |
|
|
|
|
|
|
|
returns the output stream instance Call this function to get the output stream for the codec. You may then use this stream to pull data from the codec.
Implements CascadeCodec. |
|
returns the current position in the stream Returns the current position in the stream.
Implements CascadeStream. |
|
|
|
|
|
|
|
|
|
returns the output stream instance (this) Each audio codec is also a CascadeStream so the default implementation of GetOutputStream() for audio codecs returns this.
Implements CascadeStream. |
|
seeks to a position in the stream SeekToPositions seeks to a byte position in the stream.
Implements CascadeStream. |