#include <audio2.h>
Inheritance diagram for ost::AudioDevice:
Public Member Functions | |
virtual | ~AudioDevice () |
virtual unsigned | putSamples (Linear buffer, unsigned count)=0 |
Copy linear samples to an audio device through its virtual. | |
virtual unsigned | getSamples (Linear buffer, unsigned count)=0 |
Copy linear samples from an audio device through its virtual. | |
virtual ssize_t | putBuffer (Encoded data, size_t count) |
Copy audio encoded in the currently selected encoding for the audio device. | |
virtual ssize_t | getBuffer (Encoded data, size_t count) |
Record audio encoded in the currently selected encoding for the audio device. | |
virtual bool | setEncoded (Info &info) |
Use encoding source descriptor to select the audio encoding format the audio device should be using. | |
virtual bool | setAudio (Rate rate=rate8khz, bool stereo=false, timeout_t framing=20)=0 |
Set properties for audio device. | |
virtual void | sync (void) |
Synchronize timing for audio device to next audio frame. | |
virtual void | flush (void)=0 |
Flush any pending buffered samples in audio device. | |
unsigned | bufMono (Linear buffer, unsigned count) |
Process linear mono audio and automatically convert to the encoding format the audio device is currently using. | |
unsigned | bufStereo (Linear buffer, unsigned count) |
Process linear stereo audio and automatically convert to the encoding format the audio device is currently using. | |
Info * | getInfo (void) |
Get audio device source descriptor in effect for the device. | |
bool | isEnabled (void) |
Whether device is currently enabled. | |
Protected Attributes | |
bool | enabled |
|
|
|
Process linear mono audio and automatically convert to the encoding format the audio device is currently using. If needed, automatically convert from mono to stereo.
|
|
Process linear stereo audio and automatically convert to the encoding format the audio device is currently using. If needed, automatically convert from stereo to mono.
|
|
Flush any pending buffered samples in audio device.
|
|
Record audio encoded in the currently selected encoding for the audio device.
Implements ost::AudioBase. |
|
Get audio device source descriptor in effect for the device.
|
|
Copy linear samples from an audio device through its virtual.
|
|
Whether device is currently enabled. If invalid audio settings are selected, it will be disabled until supported values are supplied.
|
|
Copy audio encoded in the currently selected encoding for the audio device.
Implements ost::AudioBase. |
|
Copy linear samples to an audio device through its virtual.
|
|
Set properties for audio device.
|
|
Use encoding source descriptor to select the audio encoding format the audio device should be using.
|
|
Synchronize timing for audio device to next audio frame. this is needed for audio devices which do not block i/o to assure one does not push too much data before the device can handle it. |
|
|