Output Class Reference
The
Output class provides the base interface class of audio outputs.
More...
#include <output.h>
List of all members.
Detailed Description
The
Output class provides the base interface class of audio outputs.
- Author:
- Brad Hughes <bhughes@trolltech.com>
Ilya Kotov <forkotov@hotmail.ru>
Constructor & Destructor Documentation
Output |
( |
QObject * |
parent = 0 |
) |
|
Object contsructor.
- Parameters:
-
Member Function Documentation
Returns selected audio parameters.
qint64 bufferSize |
( |
|
) |
const |
Returns buffer size in bytes.
Use this function inside initialize() reimplementation to tell about accepted audio parameters.
- Parameters:
-
| freq | Sample rate. |
| chan | Number of channels. |
| format | Audio format. |
static Output* create |
( |
QObject * |
parent = 0 |
) |
[static] |
Creates selected output.
- Parameters:
-
- Returns:
- Output subclass object.
Returns selected output factory.
virtual void drain |
( |
|
) |
[protected, pure virtual] |
Writes all remaining plugin's internal data to audio output device. Subclass should reimplement this function.
Returns a list of output factories.
Returns plugin file path.
- Parameters:
-
| factory | Output plugin factory. |
Requests playback to finish.
Returns selected audio format.
virtual bool initialize |
( |
quint32 |
freq, |
|
|
int |
chan, |
|
|
Qmmp::AudioFormat |
format | |
|
) |
| | [pure virtual] |
Prepares object for usage and setups required audio parameters. Subclass should reimplement this function.
- Parameters:
-
| freq | Sample rate. |
| chan | Number of channels. |
| format | Audio format |
- Returns:
- initialization result (true - success, false - failure)
virtual qint64 latency |
( |
|
) |
[pure virtual] |
Returns output interface latency in milliseconds.
Requests playback to pause. If it was paused already, playback should resume. Subclasses that reimplement this function must call the base implementation.
virtual void reset |
( |
|
) |
[protected, pure virtual] |
Drops all plugin's internal data, resets audio device Subclass should reimplement this function.
virtual void resume |
( |
|
) |
[protected, virtual] |
Resumes processing audio data.
Returns sample size in bytes.
void seek |
( |
qint64 |
pos, |
|
|
bool |
reset = false | |
|
) |
| | |
Requests a seek to the time pos indicated, specified in milliseconds. If reset is true, this function also clears internal output buffers for faster seeking; otherwise does nothing with buffers.
static void setCurrentFactory |
( |
OutputFactory * |
factory |
) |
[static] |
Selects current output factory.
Sets StateHandler pointer. May be used to override default state handler.
- Parameters:
-
Requests playback to stop.
virtual void suspend |
( |
|
) |
[protected, virtual] |
Stops processing audio data, preserving buffered audio data.
virtual qint64 writeAudio |
( |
unsigned char * |
data, |
|
|
qint64 |
maxSize | |
|
) |
| | [protected, pure virtual] |
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.
Returns the number of bytes that were written.
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/qmmp-0.6-svn/src/qmmp/output.h