#include <abstractengine.h>
Inherits QThread.
Inherited by QmmpAudioEngine.
The AbstractEngine class provides the base interface class of audio audio engines.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ AbstractEngine()
Object constructor.
- Parameters
-
◆ ~AbstractEngine()
◆ contentTypes()
static QStringList contentTypes |
( |
| ) |
|
|
static |
Returns a list of the supported mime types.
◆ create()
Creates Engine object.
- Parameters
-
s | InputSource object. |
parent | Parent object. Returns 0 if the given source is not supported. |
◆ enabledFactories()
Returns a list of enabled engine factories.
◆ enqueue()
Prepares decoder for usage. Subclass should reimplement this function.
◆ factories()
Returns a list of engine factories.
◆ file()
Returns plugin file path.
- Parameters
-
factory | Engine plugin factory. |
◆ findByFilePath()
Returns EngineFactory pointer which supports file path or 0 if file path is unsupported.
◆ isEnabled() [1/2]
Returns true if engine is enabled, otherwise returns false
- Parameters
-
◆ isEnabled() [2/2]
Returns true if engine is enabled, otherwise returns false This function uses QObject::objectName() function.
- Parameters
-
factory | Engine plugin factory. |
◆ mutex()
◆ nameFilters()
static QStringList nameFilters |
( |
| ) |
|
|
static |
Returns a list of file name filters, i.e. "*.mp3 *.mpg".
◆ pause()
◆ play()
Starts playback. Returns true if playback has been started successful, otherwise returns false.
◆ protocols()
static QStringList protocols |
( |
| ) |
|
|
static |
Returns a list of supported protocols (including meta-protocols). This fuction ignores disabled engines.
◆ seek()
virtual void seek |
( |
qint64 |
time | ) |
|
|
pure virtual |
Requests a seek to the time time indicated, specified in milliseconds.
◆ setEnabled()
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) |
◆ stop()
Requests playback to stop
The documentation for this class was generated from the following file: