mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Forgotten files are forgotten
This commit is contained in:
55
src/libtomahawk/audio/AudioEngine_p.h
Normal file
55
src/libtomahawk/audio/AudioEngine_p.h
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
|
||||||
|
#include <phonon/MediaObject>
|
||||||
|
#include <phonon/AudioOutput>
|
||||||
|
#include <phonon/BackendCapabilities>
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QQueue>
|
||||||
|
#include <QTemporaryFile>
|
||||||
|
|
||||||
|
class AudioEnginePrivate : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
AudioEnginePrivate( AudioEngine* q )
|
||||||
|
: q_ptr ( q )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
AudioEngine* q_ptr;
|
||||||
|
Q_DECLARE_PUBLIC ( AudioEngine )
|
||||||
|
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void onStateChanged( Phonon::State newState, Phonon::State oldState );
|
||||||
|
|
||||||
|
private:
|
||||||
|
QSharedPointer<QIODevice> input;
|
||||||
|
|
||||||
|
Tomahawk::query_ptr stopAfterTrack;
|
||||||
|
Tomahawk::result_ptr currentTrack;
|
||||||
|
Tomahawk::playlistinterface_ptr playlist;
|
||||||
|
Tomahawk::playlistinterface_ptr currentTrackPlaylist;
|
||||||
|
Tomahawk::playlistinterface_ptr queue;
|
||||||
|
|
||||||
|
Phonon::MediaObject* mediaObject;
|
||||||
|
Phonon::AudioOutput* audioOutput;
|
||||||
|
|
||||||
|
unsigned int timeElapsed;
|
||||||
|
bool expectStop;
|
||||||
|
bool waitingOnNewTrack;
|
||||||
|
|
||||||
|
mutable QStringList supportedMimeTypes;
|
||||||
|
|
||||||
|
AudioState state;
|
||||||
|
QQueue< AudioState > stateQueue;
|
||||||
|
QTimer stateQueueTimer;
|
||||||
|
|
||||||
|
uint_fast8_t underrunCount;
|
||||||
|
bool underrunNotified;
|
||||||
|
|
||||||
|
QTemporaryFile* coverTempFile;
|
||||||
|
|
||||||
|
static AudioEngine* s_instance;
|
||||||
|
};
|
Reference in New Issue
Block a user