gxmusic.h 495 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef GXMUSIC_H
  2. #define GXMUSIC_H
  3. class gxAudio;
  4. struct FMUSIC_MODULE;
  5. struct FSOUND_STREAM;
  6. class gxMusic{
  7. public:
  8. gxAudio *audio;
  9. gxMusic( gxAudio *audio,FMUSIC_MODULE *module,FSOUND_STREAM *stream );
  10. ~gxMusic();
  11. private:
  12. FMUSIC_MODULE *module;
  13. FSOUND_STREAM *stream;
  14. int stream_channel;
  15. /***** GX INTERFACE *****/
  16. public:
  17. //modifiers
  18. void play();
  19. void stop();
  20. void setPaused( bool paused );
  21. void setVolume( float volume );
  22. //accessors
  23. bool isPlaying()const;
  24. };
  25. #endif