From dd99879ab004dd1d81b5942ad35d5ea6c1476c10 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 7 Apr 2011 19:35:53 +0200 Subject: fixing app icon on windows add audio player --- pacman-c++/audioplayer.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pacman-c++/audioplayer.h (limited to 'pacman-c++/audioplayer.h') diff --git a/pacman-c++/audioplayer.h b/pacman-c++/audioplayer.h new file mode 100644 index 0000000..3dc3cfd --- /dev/null +++ b/pacman-c++/audioplayer.h @@ -0,0 +1,38 @@ +#ifndef AUDIOPLAYER_H +#define AUDIOPLAYER_H + +#include +#include + +namespace Phonon +{ + class MediaObject; + class AudioOutput; +} + +class AudioPlayer + : public QObject +{ + Q_OBJECT + +public: + AudioPlayer(); + static AudioPlayer *self(); + void stop(); + void setMuted(bool mute = true); + void playIntro(); + +signals: + void finished(); + +private slots: + void finished_p(); + void stateChanged_p(Phonon::State newstate, Phonon::State oldstate); + +private: + Phonon::MediaObject *m_player; + Phonon::AudioOutput *m_output; + static AudioPlayer *m_instance; +}; + +#endif // AUDIOPLAYER_H -- cgit v1.2.3