Poster of Linux kernelThe best gift for a Linux geek
ost::AudioBase

ost::AudioBase

Section: C Library Functions (3) Updated: 1 May 2009
Local index Up
 

NAME

ost::AudioBase - AudioBase base class for many other audio classes which stream data.

 

SYNOPSIS


#include <audio2.h>

Inherits ost::Audio.

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.
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

 

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.  

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

Generic get encoding.

Returns:

audio encoding of this object.

Reimplemented in ost::AudioFile.  

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.

 

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.  

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.

 

Member Data Documentation

 

Info ost::AudioBase::info [protected]

 

Author

Generated automatically by Doxygen for ccAudio from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Protected Attributes
Detailed Description
Constructor & Destructor Documentation
ost::AudioBase::AudioBase ()
ost::AudioBase::AudioBase (Info * info)
virtual ost::AudioBase::~AudioBase () [virtual]
Member Function Documentation
virtual ssize_t ost::AudioBase::getBuffer (Encoded data, size_t size) [pure virtual]
Encoding ost::AudioBase::getEncoding (void) [inline]
ssize_t ost::AudioBase::getNative (Encoded data, size_t size)
ssize_t ost::AudioBase::getPacket (Encoded data) [inline]
unsigned ost::AudioBase::getSampleRate (void) [inline]
virtual ssize_t ost::AudioBase::putBuffer (Encoded data, size_t size) [pure virtual]
ssize_t ost::AudioBase::putNative (Encoded data, size_t size)
Member Data Documentation
Info ost::AudioBase::info [protected]
Author

This document was created by man2html, using the manual pages.
Time: 21:51:49 GMT, April 16, 2011