ost::AudioBase Class Reference

AudioBase base class for many other audio classes which stream data.common audio stream base. More...

#include <audio2.h>

Inheritance diagram for ost::AudioBase:

ost::Audio ost::AudioBuffer ost::AudioDevice ost::AudioFile ost::AudioStream List of all members.

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.
Encoding getEncoding (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.

Parameters:
info source description.

virtual ost::AudioBase::~AudioBase (  )  [virtual]

Destroy an audio base object.


Member Function Documentation

Encoding ost::AudioBase::getEncoding ( void   )  [inline]

Generic get encoding.

Returns:
audio encoding of this object.

Reimplemented in ost::AudioFile.

unsigned ost::AudioBase::getSampleRate ( void   )  [inline]

Generic sample rate.

Returns:
audio sample rate of this object.

Reimplemented in ost::AudioFile.

virtual ssize_t ost::AudioBase::putBuffer ( Encoded  data,
size_t  size 
) [pure virtual]

Abstract interface to put raw data.

Parameters:
data to put.
size of data to put.
Returns:
number of bytes actually put.

Implemented in ost::AudioBuffer, ost::AudioFile, and ost::AudioDevice.

ssize_t ost::AudioBase::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.

Parameters:
data to put.
size of data to put.
Returns:
number of bytes actually put.

virtual ssize_t ost::AudioBase::getBuffer ( Encoded  data,
size_t  size 
) [pure virtual]

Abstract interface to get raw data.

Returns:
data received in buffer.
Parameters:
data to get.
size of data to get.

Implemented in ost::AudioBuffer, ost::AudioFile, ost::AudioStream, and ost::AudioDevice.

ssize_t ost::AudioBase::getPacket ( Encoded  data  )  [inline]

Get's a packet of audio data.

Returns:
count of data received.
Parameters:
data to get.

Reimplemented in ost::AudioStream.

ssize_t ost::AudioBase::getNative ( Encoded  data,
size_t  size 
)

Get raw data and assure is in native machine endian.

Returns:
data received in buffer.
Parameters:
data to get.
size of data to get.


Member Data Documentation

Info ost::AudioBase::info [protected]


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 08:35:26 2006 for ccAudio by  doxygen 1.5.1