00001 #ifndef HEADER_DUMMYSOUNDAGENT_H 00002 #define HEADER_DUMMYSOUNDAGENT_H 00003 00004 #include "SoundAgent.h" 00005 00006 /** 00007 * NO sound and music. 00008 */ 00009 class DummySoundAgent : public SoundAgent { 00010 protected: 00011 virtual void setSoundVolume(int ) {} 00012 virtual void setMusicVolume(int ) {} 00013 public: 00014 virtual int playSound(Mix_Chunk *, int /*volume*/, int /*loops*/) 00015 { return -1; } 00016 00017 virtual void playMusic(const Path &, 00018 BaseMsg *finished) 00019 { 00020 if (finished) { 00021 delete finished; 00022 } 00023 } 00024 virtual void stopMusic() {} 00025 }; 00026 00027 #endif