diff options
Diffstat (limited to 'pacman-c++/audio.h')
| -rw-r--r-- | pacman-c++/audio.h | 9 |
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 | ||
| 55 | protected: | 59 | protected: |
| 56 | void test(QFile *testsound); | 60 | void test(QFile *testsound); |
| @@ -60,6 +64,7 @@ public slots: | |||
| 60 | void loopEnqueue(); | 64 | void loopEnqueue(); |
| 61 | 65 | ||
| 62 | protected slots: | 66 | protected 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); |
