|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include <qmmpaudioengine_p.h>
Inheritance diagram for QmmpAudioEngine:Public Member Functions | |
| QmmpAudioEngine (QObject *parent) | |
| virtual | ~QmmpAudioEngine () |
| virtual bool | play () overridefinal |
| virtual bool | enqueue (InputSource *source) overridefinal |
| virtual void | seek (qint64 time) overridefinal |
| virtual void | stop () overridefinal |
| virtual void | pause () overridefinal |
| void | addEffect (EffectFactory *factory) |
| void | removeEffect (EffectFactory *factory) |
Public Member Functions inherited from AbstractEngine | |
| AbstractEngine (QObject *parent=nullptr) | |
| virtual | ~AbstractEngine ()=default |
Static Public Member Functions | |
| static QmmpAudioEngine * | instance () |
Static Public Member Functions inherited from AbstractEngine | |
| static AbstractEngine * | create (InputSource *s, QObject *parent=nullptr) |
| static QList< EngineFactory * > | factories () |
| static QList< EngineFactory * > | enabledFactories () |
| static QStringList | nameFilters () |
| static QStringList | contentTypes () |
| static EngineFactory * | findByFilePath (const QString &path) |
| static void | setEnabled (EngineFactory *factory, bool enable=true) |
| static bool | isEnabled (const EngineFactory *factory) |
| static bool | isEnabled (const AbstractEngine *engine) |
| static QString | file (const EngineFactory *factory) |
| static QStringList | protocols () |
Private Slots | |
| void | finish () |
| void | updateReplayGainSettings () |
| void | updateAudioSettings () |
| void | updateEqSettings () |
Private Member Functions | |
| virtual void | run () overridefinal |
| void | reset () |
| void | clearDecoders () |
| void | flush (bool=false) |
| void | addOffset () |
| qint64 | produceSound (unsigned char *data, qint64 size, quint32 brate) |
| void | attachMetaData (Decoder *decoder, DecoderFactory *factory, InputSource *source) |
| OutputWriter * | createOutput () |
| void | prepareEffects (Decoder *d) |
Private Attributes | |
| DecoderFactory * | m_factory = nullptr |
| QList< Effect * > | m_effects |
| QList< Effect * > | m_blockedEffects |
| OutputWriter * | m_output = nullptr |
| std::atomic_bool | m_done |
| std::atomic_bool | m_finish |
| std::atomic_bool | m_user_stop |
| uint | m_bks = 0 |
| uint | m_sample_size = 0 |
| qint64 | m_seekTime = -1 |
| quint64 | m_output_at = 0 |
| quint64 | m_output_size = 0 |
| int | m_bitrate = 0 |
| unsigned char * | m_output_buf = nullptr |
| Decoder * | m_decoder = nullptr |
| QQueue< Decoder * > | m_decoders |
| QHash< Decoder *, InputSource * > | m_inputs |
| AudioParameters | m_ap |
| bool | m_next = false |
| QSharedPointer< TrackInfo > | m_trackInfo |
| ReplayGain * | m_replayGain = nullptr |
| QmmpSettings * | m_settings = nullptr |
| AudioConverter * | m_converter = nullptr |
| Dithering * | m_dithering = nullptr |
Static Private Attributes | |
| static QmmpAudioEngine * | m_instance |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractEngine | |
| QMutex * | mutex () |
Definition at line 48 of file qmmpaudioengine_p.h.
|
explicit |
|
virtual |
| void QmmpAudioEngine::addEffect | ( | EffectFactory * | factory | ) |
|
private |
|
private |
|
private |
|
private |
|
finaloverridevirtual |
Adds source to the internal queue. Subclass should reimplement this function.
Implements AbstractEngine.
|
privateslot |
|
private |
|
static |
|
finaloverridevirtual |
Pauses/resumes playback
Implements AbstractEngine.
|
finaloverridevirtual |
Starts playback. Returns true if playback has been started successful, otherwise returns false.
Implements AbstractEngine.
|
private |
|
private |
| void QmmpAudioEngine::removeEffect | ( | EffectFactory * | factory | ) |
|
private |
|
finaloverrideprivatevirtual |
|
finaloverridevirtual |
Requests a seek to the time time indicated, specified in milliseconds.
Implements AbstractEngine.
|
finaloverridevirtual |
Requests playback to stop
Implements AbstractEngine.
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
Definition at line 97 of file qmmpaudioengine_p.h.
|
private |
Definition at line 92 of file qmmpaudioengine_p.h.
|
private |
Definition at line 89 of file qmmpaudioengine_p.h.
|
private |
Definition at line 85 of file qmmpaudioengine_p.h.
|
private |
Definition at line 103 of file qmmpaudioengine_p.h.
|
private |
Definition at line 94 of file qmmpaudioengine_p.h.
|
private |
Definition at line 95 of file qmmpaudioengine_p.h.
|
private |
Definition at line 104 of file qmmpaudioengine_p.h.
|
private |
Definition at line 88 of file qmmpaudioengine_p.h.
|
private |
Definition at line 84 of file qmmpaudioengine_p.h.
|
private |
Definition at line 83 of file qmmpaudioengine_p.h.
|
private |
Definition at line 88 of file qmmpaudioengine_p.h.
|
private |
Definition at line 96 of file qmmpaudioengine_p.h.
|
staticprivate |
Definition at line 100 of file qmmpaudioengine_p.h.
|
private |
Definition at line 98 of file qmmpaudioengine_p.h.
|
private |
Definition at line 86 of file qmmpaudioengine_p.h.
|
private |
Definition at line 91 of file qmmpaudioengine_p.h.
|
private |
Definition at line 93 of file qmmpaudioengine_p.h.
|
private |
Definition at line 91 of file qmmpaudioengine_p.h.
|
private |
Definition at line 101 of file qmmpaudioengine_p.h.
|
private |
Definition at line 89 of file qmmpaudioengine_p.h.
|
private |
Definition at line 90 of file qmmpaudioengine_p.h.
|
private |
Definition at line 102 of file qmmpaudioengine_p.h.
|
private |
Definition at line 99 of file qmmpaudioengine_p.h.
|
private |
Definition at line 88 of file qmmpaudioengine_p.h.
1.8.8