diff options
| author | manuel <manuel@mausz.at> | 2011-04-16 19:49:11 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-16 19:49:11 +0200 |
| commit | 8187d48b30defcb11c61ba5365fe974151849e38 (patch) | |
| tree | 1a0f519187ca8e434db2bbdffbb627a1466de59c | |
| parent | e065796e8d1cd4507899ba2c6d4f5410d83bb994 (diff) | |
| download | foop-8187d48b30defcb11c61ba5365fe974151849e38.tar.gz foop-8187d48b30defcb11c61ba5365fe974151849e38.tar.bz2 foop-8187d48b30defcb11c61ba5365fe974151849e38.zip | |
fix eating_fruit sound (making it a bit longer)
| -rw-r--r-- | pacman-c++/anyoption.cpp | 2 | ||||
| -rw-r--r-- | pacman-c++/audio.cpp | 4 | ||||
| -rw-r--r-- | pacman-c++/sound/eating_fruit.ogg | bin | 8118 -> 8774 bytes |
3 files changed, 2 insertions, 4 deletions
diff --git a/pacman-c++/anyoption.cpp b/pacman-c++/anyoption.cpp index fc302b3..4e3828e 100644 --- a/pacman-c++/anyoption.cpp +++ b/pacman-c++/anyoption.cpp | |||
| @@ -60,7 +60,7 @@ | |||
| 60 | */ | 60 | */ |
| 61 | 61 | ||
| 62 | #include "anyoption.h" | 62 | #include "anyoption.h" |
| 63 | #include <string.h> | 63 | #include <cstring> |
| 64 | 64 | ||
| 65 | AnyOption::AnyOption() | 65 | AnyOption::AnyOption() |
| 66 | { | 66 | { |
diff --git a/pacman-c++/audio.cpp b/pacman-c++/audio.cpp index ad6eed1..d627c75 100644 --- a/pacman-c++/audio.cpp +++ b/pacman-c++/audio.cpp | |||
| @@ -105,9 +105,7 @@ void AudioManager::play(Sound::Type sound) | |||
| 105 | return; | 105 | return; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | AudioPlayer *player = audioPlayer(); | 108 | audioPlayer()->play(sound); |
| 109 | player->setCurrentSource(Phonon::MediaSource(m_sounds[sound])); | ||
| 110 | player->play(); | ||
| 111 | } | 109 | } |
| 112 | 110 | ||
| 113 | void AudioManager::enqueue(Sound::Type sound) | 111 | void AudioManager::enqueue(Sound::Type sound) |
diff --git a/pacman-c++/sound/eating_fruit.ogg b/pacman-c++/sound/eating_fruit.ogg index cf17164..752864a 100644 --- a/pacman-c++/sound/eating_fruit.ogg +++ b/pacman-c++/sound/eating_fruit.ogg | |||
| Binary files differ | |||
