diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 01:33:13 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 01:33:13 +0200 |
| commit | 1517d892bc461aa96ea9b04ed5486fca33256fe1 (patch) | |
| tree | 15be3824170157a7507b1d4018aeacd2708669c4 /pacman-c++/actor.cpp | |
| parent | 2c1c79748ca0eb51c23c94bf876d3918ac847f8a (diff) | |
| download | foop-1517d892bc461aa96ea9b04ed5486fca33256fe1.tar.gz foop-1517d892bc461aa96ea9b04ed5486fca33256fe1.tar.bz2 foop-1517d892bc461aa96ea9b04ed5486fca33256fe1.zip | |
fix sound (again)
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index cd59c1e..5ccc339 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -163,12 +163,17 @@ void Actor::move(Actor::Movement direction) | |||
| 163 | 163 | ||
| 164 | if (direction != Actor::None) | 164 | if (direction != Actor::None) |
| 165 | { | 165 | { |
| 166 | m_moving->start(); | ||
| 167 | if (m_local && AudioPlayer::self()->state() != Phonon::PlayingState) | 166 | if (m_local && AudioPlayer::self()->state() != Phonon::PlayingState) |
| 168 | { | 167 | { |
| 168 | AudioPlayer::self()->clearQueue(); | ||
| 169 | AudioPlayer::self()->play(AudioPlayer::WakaWaka); | 169 | AudioPlayer::self()->play(AudioPlayer::WakaWaka); |
| 170 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); | 170 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); |
| 171 | } | 171 | } |
| 172 | m_moving->start(); | ||
| 173 | } | ||
| 174 | else | ||
| 175 | { | ||
| 176 | AudioPlayer::self()->stop(); | ||
| 172 | } | 177 | } |
| 173 | } | 178 | } |
| 174 | 179 | ||
