1 #ifndef SOUND_H_ 2 #define SOUND_H_ 3 4 #include "SDL_mixer.h" 5 6 class Sound { 7 private: 8 bool m_enabled; 9 int m_chan; 10 Mix_Chunk* m_sndRef; 11 public: 12 Sound(Mix_Chunk* sndRef, bool enabled); 13 bool isPlaying(); 14 void play(int chan, int fade, int loop); 15 void playInf(int chan); 16 void setPos(Sint16 angle, Uint8 distance); 17 void setVol(int value); 18 void stop(int fade); 19 ~Sound(); 20 }; 21 22 #endif /* SOUND_H_ */ 23