|
Sayonara Player
|
The PlaybackEngine class. More...
#include <Engine.h>
Public Slots | |
| void | play () |
| void | stop () |
| void | pause () |
| void | jumpAbsMs (MilliSeconds pos_ms) |
| void | jumpRelMs (MilliSeconds pos_ms) |
| void | jumpRel (double percent) |
| void | updateMetadata (const MetaData &track, GstElement *src) |
| void | updateCover (GstElement *src, const QByteArray &data, const QString &mimedata) |
| bool | changeTrack (const MetaData &track) |
| void | setBufferState (int progress, GstElement *src) |
| void | error (const QString &error, const QString &elementName) |
Signals | |
| void | sigDataAvailable (const QByteArray &data) |
| void | sigSpectrumChanged () |
| void | sigLevelChanged () |
| void | sigMetadataChanged (const MetaData &md) |
| void | sigDurationChanged (const MetaData &md) |
| void | sigBitrateChanged (const MetaData &md) |
| void | sigCoverDataAvailable (const QByteArray &data, const QString &mimetype) |
| void | sigCurrentPositionChanged (MilliSeconds ms) |
| void | sigBuffering (int progress) |
| void | sigTrackFinished () |
| void | sigTrackReady () |
| void | sigError (const QString &error_message) |
Public Member Functions | |
| Engine (PlayManager *playManager, QObject *parent=nullptr) | |
| void | updateBitrate (Bitrate br, GstElement *src) |
| void | updateDuration (GstElement *src) |
| void | setTrackReady (GstElement *src) |
| void | setTrackAlmostFinished (MilliSeconds time2go) |
| void | setTrackFinished (GstElement *src) |
| bool | isStreamRecorderRecording () const |
| void | setStreamRecorderRecording (bool b) |
| void | setSpectrum (const std::vector< float > &spectrum) |
| const std::vector< float > & | spectrum () const |
| void | setLevel (float left, float right) |
| QPair< float, float > | level () const |
| void | setVisualizerEnabled (bool levelEnabled, bool spectrumEnabled) |
| void | setBroadcastEnabled (bool b) |
| void | setEqualizer (int band, int value) |
| MetaData | currentTrack () const |
The PlaybackEngine class.