The AbstractEngine class provides the base interface class of audio audio engines.
More...
#include <abstractengine.h>
Inherited by QmmpAudioEngine.
List of all members.
Detailed Description
The AbstractEngine class provides the base interface class of audio audio engines.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Constructor & Destructor Documentation
Object constructor.
- Parameters:
-
Member Function Documentation
Creates Engine object.
- Parameters:
-
s | InputSource object. |
parent | Parent object. Returns 0 if the given source is not supported. |
Returns a list of enabled engine factories.
virtual bool enqueue |
( |
InputSource * |
source | ) |
[pure virtual] |
Prepares decoder for usage. Subclass should reimplement this function.
Returns a list of engine factories.
Returns plugin file path.
- Parameters:
-
factory | Engine plugin factory. |
static EngineFactory* findByPath |
( |
const QString & |
path | ) |
[static] |
Returns EngineFactory pointer which supports file path or 0 if file path is unsupported
Returns true if engine is enabled, otherwise returns false
- Parameters:
-
factory | Engine plugin factory. |
virtual void pause |
( |
| ) |
[pure virtual] |
virtual bool play |
( |
| ) |
[pure virtual] |
Starts playback. Returns true if playback has been started successful, otherwise returns false.
static QStringList protocols |
( |
| ) |
[static] |
Returns a list of supported protocols (including meta-protocols). This fuction ignores disabled engines.
virtual void seek |
( |
qint64 |
time | ) |
[pure virtual] |
Requests a seek to the time time indicated, specified in milliseconds.
static void setEnabled |
( |
EngineFactory * |
factory, |
|
|
bool |
enable = true |
|
) |
| [static] |
Sets whether the engine is enabled.
- Parameters:
-
factory | Engine plugin factory. |
enable | Plugin enable state (true - enable, false - disable) |
virtual void setMuted |
( |
bool |
muted | ) |
[pure virtual] |
Mutes/Restores volume. Subclass should reimplement this function.
- Parameters:
-
muted | - state of volume (true - mute, false - restore) |
virtual void stop |
( |
| ) |
[pure virtual] |
Requests playback to stop
The documentation for this class was generated from the following file: