home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / foxbear / fbsound.h < prev    next >
C/C++ Source or Header  |  1997-07-14  |  895b  |  40 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:       fbsound.h
  6.  *  Content:    Includes for FoxBear DirectSound support
  7.  *
  8.  ***************************************************************************/
  9. #ifndef __FBSOUND_INCLUDED__
  10. #define __FBSOUND_INCLUDED__
  11.  
  12. /*
  13.  * types of sound effects
  14.  */
  15. typedef enum enum_EFFECT
  16. {
  17.     SOUND_STOP = 0,
  18.     SOUND_THROW,
  19.     SOUND_JUMP,
  20.     SOUND_STUNNED,
  21.     SOUND_BEARSTRIKE,
  22.     SOUND_BEARMISS,
  23. } EFFECT;
  24.  
  25. #define NUM_SOUND_EFFECTS       6
  26.  
  27. /*
  28.  * fn prototypes
  29.  */
  30. BOOL InitSound( HWND );
  31. BOOL DestroySound( void );
  32. BOOL DSDisable( void );
  33. BOOL DSEnable( HWND );
  34. BOOL SoundLoadEffect( EFFECT );
  35. BOOL SoundPlayEffect( EFFECT );
  36. BOOL SoundStopEffect( EFFECT );
  37. BOOL SoundDestroyEffect( EFFECT );
  38.  
  39. #endif
  40.