The Output class provides the base interface class of audio outputs.
More...
#include <output.h>
The Output class provides the base interface class of audio outputs.
- Author
- Brad Hughes bhugh.nosp@m.es@t.nosp@m.rollt.nosp@m.ech..nosp@m.com
-
Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
Definition at line 39 of file output.h.
virtual Output::~Output |
( |
| ) |
|
|
virtualdefault |
Returns selected audio parameters.
Returns required channel map.
int Output::channels |
( |
| ) |
const |
Returns number of channels.
Use this function inside initialize() reimplementation to tell about accepted audio parameters.
- Parameters
-
freq | Sample rate. |
map | Map of channels. |
format | Audio format. |
static Output* Output::create |
( |
| ) |
|
|
static |
Creates selected output.
- Returns
- Output subclass object.
virtual void Output::drain |
( |
| ) |
|
|
pure virtual |
Writes all remaining plugin's internal data to audio output device. Subclass should reimplement this function.
Returns selected audio format.
Prepares object for usage and setups required audio parameters. Subclass should reimplement this function.
- Parameters
-
freq | Sample rate. |
map | Map of channels. |
format | Audio format |
- Returns
- initialization result (true - success, false - failure)
virtual qint64 Output::latency |
( |
| ) |
|
|
pure virtual |
Returns output interface latency in milliseconds.
static void Output::loadPlugins |
( |
| ) |
|
|
staticprivate |
virtual void Output::reset |
( |
| ) |
|
|
pure virtual |
Drops all plugin's internal data, resets audio device Subclass should reimplement this function.
virtual void Output::resume |
( |
| ) |
|
|
virtual |
Resumes processing audio data.
quint32 Output::sampleRate |
( |
| ) |
const |
int Output::sampleSize |
( |
| ) |
const |
Returns sample size in bytes.
Sets track information for output. Default implementation does nothing. Reimplement this function to receive metadata.
virtual void Output::suspend |
( |
| ) |
|
|
virtual |
Stops processing audio data, preserving buffered audio data.
virtual qint64 Output::writeAudio |
( |
unsigned char * |
data, |
|
|
qint64 |
maxSize |
|
) |
| |
|
pure virtual |
Requests playback to pause. If it was paused already, playback should resume. Subclasses that reimplement this function must call the base implementation.
Writes up to maxSize bytes from data to the output interface device. Returns the number of bytes written, or -1 if an error occurred. Subclass should reimplement this function.
quint32 Output::m_frequency = 0 |
|
private |
int Output::m_sample_size = 0 |
|
private |
The documentation for this class was generated from the following file: