#include <output.h>
◆ Output()
◆ ~Output()
◆ audioParameters()
Returns selected audio parameters.
◆ channelMap()
Returns required channel map.
◆ channels()
Returns number of channels.
◆ configure()
Use this function inside initialize() reimplementation to tell about accepted audio parameters.
- Parameters
-
freq | Sample rate. |
map | Map of channels. |
format | Audio format. |
◆ create()
Creates selected output.
- Returns
- Output subclass object.
◆ currentFactory()
Returns selected output factory.
◆ drain()
Writes all remaining plugin's internal data to audio output device. Subclass should reimplement this function.
◆ factories()
Returns a list of output factories.
◆ file()
Returns plugin file path.
- Parameters
-
◆ format()
Returns selected audio format.
◆ initialize()
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)
◆ latency()
virtual qint64 latency |
( |
| ) |
|
|
pure virtual |
Returns output interface latency in milliseconds.
◆ reset()
Drops all plugin's internal data, resets audio device Subclass should reimplement this function.
◆ resume()
Resumes processing audio data.
◆ sampleRate()
quint32 sampleRate |
( |
| ) |
const |
◆ sampleSize()
Returns sample size in bytes.
◆ setCurrentFactory()
Selects current output factory.
◆ setTrackInfo()
virtual void setTrackInfo |
( |
const TrackInfo & |
info | ) |
|
|
virtual |
Sets track information for output. Default implementation does nothing. Reimplement this function to receive metadata.
◆ suspend()
Stops processing audio data, preserving buffered audio data.
◆ writeAudio()
virtual qint64 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.
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/qmmp-1.4.6/src/qmmp/output.h