#include <audio2.h>
Inheritance diagram for ost::AudioBase:

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 |
|
|
Create audio base object with no info.
|
|
|
Create audio base object with audio source description.
|
|
|
Destroy an audio base object.
|
|
||||||||||||
|
Abstract interface to get raw data.
Implemented in ost::AudioBuffer, ost::AudioFile, ost::AudioStream, and ost::AudioDevice. |
|
|
Generic get encoding.
Reimplemented in ost::AudioFile. |
|
||||||||||||
|
Get raw data and assure is in native machine endian.
|
|
|
Get's a packet of audio data.
Reimplemented in ost::AudioStream. |
|
|
Generic sample rate.
Reimplemented in ost::AudioFile. |
|
||||||||||||
|
Abstract interface to put raw data.
Implemented in ost::AudioBuffer, ost::AudioFile, and ost::AudioDevice. |
|
||||||||||||
|
Puts raw data and does native to refined endian swapping if needed based on encoding type and local machine endian.
|
|
|
|
1.4.6