mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Forgotten files are forgotten
This commit is contained in:
parent
23513f2510
commit
606bc1c51e
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;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user