Inherited by ost::AudioBuffer, ost::AudioDevice, and ost::AudioFile.
Public Member Functions
AudioBase ()
Create audio base object with no info. AudioBase (Info *info)
Create audio base object with audio source description.
virtual ~AudioBase ()
Destroy an audio base object. EncodinggetEncoding (void)
Generic get encoding.
unsigned getSampleRate (void)
Generic sample rate.
virtual ssize_t putBuffer (Encoded data, size_t size)=0
Abstract interface to put raw data.
ssize_t putNative (Encoded data, size_t size)
Puts raw data and does native to refined endian swapping if needed based on encoding type and local machine endian.
virtual ssize_t getBuffer (Encoded data, size_t size)=0
Abstract interface to get raw data.
ssize_t getPacket (Encoded data)
Get's a packet of audio data.
ssize_t getNative (Encoded data, size_t size)
Get raw data and assure is in native machine endian.
Protected Attributes
Info info
Detailed Description
AudioBase base class for many other audio classes which stream data.
common audio stream base.
Constructor & Destructor Documentation
ost::AudioBase::AudioBase ()
Create audio base object with no info.
ost::AudioBase::AudioBase (Info * info)
Create audio base object with audio source description.