From 43061892c7c9d341bacb7c679444f2885bd56907 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 11 Apr 2011 02:24:48 +0200 Subject: - make use of my_color (still TODO: pre-game dialog (with intro music) + display own color first in scoreboard) - remove some audio debugging noice --- pacman-c++/audio.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pacman-c++/audio.cpp') diff --git a/pacman-c++/audio.cpp b/pacman-c++/audio.cpp index ebeda2b..d74445a 100644 --- a/pacman-c++/audio.cpp +++ b/pacman-c++/audio.cpp @@ -13,7 +13,9 @@ bool AudioManager::m_working = false; AudioManager::AudioManager() : m_muted(true) { -#ifndef SERVER +#ifdef SERVER + qDebug() << "Server has no sound" +#else preload(); AudioPlayer *firstplayer = new AudioPlayer(this); @@ -22,8 +24,6 @@ AudioManager::AudioManager() m_players.append(firstplayer); m_muted = false; -#else - qDebug() << "Server has no sound" #endif // SERVER } @@ -47,7 +47,6 @@ void AudioManager::setMuted(bool mute) if (mute == m_muted) return; - qDebug() << "mute"; for(int i = 0; i < m_players.count(); ++i) m_players.at(i)->setMuted(mute); m_muted = mute; -- cgit v1.2.3