SOUND.H 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __SOUND_H
  2. #define __SOUND_H
  3. #include "typedefs.h"
  4. /***********************************************************************
  5. * Exported variables
  6. **********************************************************************/
  7. extern int gFXDevice;
  8. extern int gMusicDevice;
  9. /***********************************************************************
  10. * Function prototypes
  11. **********************************************************************/
  12. extern void sndPlaySong( char *song, BOOL loopflag );
  13. extern BOOL sndIsSongPlaying( void );
  14. extern void sndFadeSong( int nMilliseconds );
  15. extern void sndStopSong( void );
  16. extern void sndStartSample( char *sampleName, int nVol, int nChannel = -1 );
  17. /* Play a sound at the given volume. Use this function for interface and other
  18. non-3D sound effects. */
  19. extern void sndKillAllSounds( void );
  20. /* Stop all interface sounds. This could potentially kill all 3D sounds, too.
  21. */
  22. extern void sndProcess( void );
  23. /* Process sound events. Must be called once per frame. */
  24. extern void sndInit( void );
  25. extern void sndTerm( void );
  26. #endif //__SOUND_H