summaryrefslogtreecommitdiffstats
path: root/pacman-c++/audio.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-25 14:39:00 +0200
committermanuel <manuel@mausz.at>2011-04-25 14:39:00 +0200
commit41a31420cf091aeb4e986503387855d41e550106 (patch)
treeffbe0be5f9630a0bab2deb0b5df37c174bf40db1 /pacman-c++/audio.h
parentbbd2a69a962d15f74a4afcb7b66462eac9fa5008 (diff)
downloadfoop-41a31420cf091aeb4e986503387855d41e550106.tar.gz
foop-41a31420cf091aeb4e986503387855d41e550106.tar.bz2
foop-41a31420cf091aeb4e986503387855d41e550106.zip
- add intro sound on every round
- add dieing sound - add dieing animation - add die on moving onto colorized block
Diffstat (limited to 'pacman-c++/audio.h')
-rw-r--r--pacman-c++/audio.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/pacman-c++/audio.h b/pacman-c++/audio.h
index 3e76f50..9a4feec 100644
--- a/pacman-c++/audio.h
+++ b/pacman-c++/audio.h
@@ -23,6 +23,10 @@ namespace Sound
23 Die, 23 Die,
24 Ambient 24 Ambient
25 }; 25 };
26
27 const unsigned int length[] = {
28 4310, 2090, 570, 570, 1720
29 };
26}; 30};
27 31
28/* --------------------------------------------------------------- */ 32/* --------------------------------------------------------------- */
@@ -50,7 +54,7 @@ public:
50 bool isMuted() const; 54 bool isMuted() const;
51 void setLoop(Sound::Type sound); 55 void setLoop(Sound::Type sound);
52 void play(); 56 void play();
53 void play(Sound::Type sound); 57 void play(Sound::Type sound, bool wait = false);
54 58
55protected: 59protected:
56 void test(QFile *testsound); 60 void test(QFile *testsound);
@@ -60,6 +64,7 @@ public slots:
60 void loopEnqueue(); 64 void loopEnqueue();
61 65
62protected slots: 66protected slots:
67 void finished_ex();
63 void testFinished(); 68 void testFinished();
64 void stateChanged_ex(Phonon::State newstate, Phonon::State oldstate); 69 void stateChanged_ex(Phonon::State newstate, Phonon::State oldstate);
65 70
@@ -116,7 +121,7 @@ public:
116 void clearQueue() const; 121 void clearQueue() const;
117 122
118 AudioPlayer *audioPlayer(); 123 AudioPlayer *audioPlayer();
119 void play(Sound::Type sound); 124 void play(Sound::Type sound, bool wait = false);
120 void enqueue(Sound::Type sound); 125 void enqueue(Sound::Type sound);
121 126
122 void registerAudioPlayer(AudioPlayer *player); 127 void registerAudioPlayer(AudioPlayer *player);