Rechercher une page de manuel
ost_AudioBase
Langue: en
Version: 352567 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- 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
- Author
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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre