FBSOUND.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  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.  * types of sound effects
  13.  */
  14. typedef enum enum_EFFECT
  15. {
  16.     SOUND_STOP = 0,
  17.     SOUND_THROW,
  18.     SOUND_JUMP,
  19.     SOUND_STUNNED,
  20.     SOUND_BEARSTRIKE,
  21.     SOUND_BEARMISS,
  22. } EFFECT;
  23. #define NUM_SOUND_EFFECTS       6
  24. /*
  25.  * fn prototypes
  26.  */
  27. BOOL InitSound( HWND );
  28. BOOL DestroySound( void );
  29. BOOL DSDisable( void );
  30. BOOL DSEnable( HWND );
  31. BOOL SoundLoadEffect( EFFECT );
  32. BOOL SoundPlayEffect( EFFECT );
  33. BOOL SoundStopEffect( EFFECT );
  34. BOOL SoundDestroyEffect( EFFECT );
  35. #endif