From d0eafb0124a39eeda6c00595a943ce9811d589c4 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 10 Apr 2011 20:50:54 +0200 Subject: major audio rewrite --- pacman-c++/audioplayer.h | 65 ------------------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 pacman-c++/audioplayer.h (limited to 'pacman-c++/audioplayer.h') diff --git a/pacman-c++/audioplayer.h b/pacman-c++/audioplayer.h deleted file mode 100644 index 474b6ca..0000000 --- a/pacman-c++/audioplayer.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef AUDIOPLAYER_H -#define AUDIOPLAYER_H - -#include -#include -#include -#include - -namespace Phonon -{ - class MediaObject; - class AudioOutput; -} - -class AudioPlayer - : public QObject -{ - Q_OBJECT - -public: - enum Sound { - Intro = 0, - WakaWaka, - EatingCherry, - Die - }; - -public: - AudioPlayer(); - static AudioPlayer *self(); - bool isWorking() const; - void stop(); - void setMuted(bool mute = true); - bool isMuted() const; - void play(Sound sound); - void clear(); - void enqueue(Sound sound); - void clearQueue() const; - Phonon::State state(); - -signals: - void finished(); - void aboutToFinish(); - void mutedChanged(bool muted); - -private: - void test(); - void preload(); - -private slots: - void finished_p(); - void aboutToFinish_p(); - void stateChanged_p(Phonon::State newstate, Phonon::State oldstate); - void mutedChanged_p(bool muted); - void testFinished(); - -private: - bool m_working; - Phonon::MediaObject *m_player; - Phonon::AudioOutput *m_output; - static AudioPlayer *m_instance; - QList m_sounds; -}; - -#endif // AUDIOPLAYER_H -- cgit v1.2.3