diff options
Diffstat (limited to 'pacman-c++/audioplayer.cpp')
| -rw-r--r-- | pacman-c++/audioplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pacman-c++/audioplayer.cpp b/pacman-c++/audioplayer.cpp index 5507bb3..5170183 100644 --- a/pacman-c++/audioplayer.cpp +++ b/pacman-c++/audioplayer.cpp | |||
| @@ -42,7 +42,9 @@ AudioPlayer::AudioPlayer() | |||
| 42 | Phonon::createPath(m_player, m_output); | 42 | Phonon::createPath(m_player, m_output); |
| 43 | 43 | ||
| 44 | preload(); | 44 | preload(); |
| 45 | #ifndef SERVER | ||
| 45 | test(); | 46 | test(); |
| 47 | #endif // SERVER | ||
| 46 | } | 48 | } |
| 47 | 49 | ||
| 48 | AudioPlayer *AudioPlayer::self() | 50 | AudioPlayer *AudioPlayer::self() |
| @@ -74,6 +76,9 @@ bool AudioPlayer::isMuted() const | |||
| 74 | 76 | ||
| 75 | void AudioPlayer::play(AudioPlayer::Sound sound) | 77 | void AudioPlayer::play(AudioPlayer::Sound sound) |
| 76 | { | 78 | { |
| 79 | #ifdef SERVER | ||
| 80 | return; | ||
| 81 | #endif // SERVER | ||
| 77 | if (!m_working) | 82 | if (!m_working) |
| 78 | emit finished_p(); | 83 | emit finished_p(); |
| 79 | 84 | ||
