home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Game_Audio / audio_sdk / src / AudioLib / AudioCommon.h next >
Encoding:
C/C++ Source or Header  |  2002-07-28  |  1.5 KB  |  58 lines

  1. /***********************************************************\
  2. Copyright (C) James Boer, 2002. 
  3. All rights reserved worldwide.
  4.  
  5. This software is provided "as is" without express or implied
  6. warranties. You may freely copy and compile this source into
  7. applications you distribute provided that the copyright text
  8. below is included in the resulting source code, for example:
  9. "Portions Copyright (C) James Boer, 2002"
  10. \***********************************************************/
  11. #ifndef __AUDIO_COMMON_H
  12. #define __AUDIO_COMMON_H
  13.  
  14. #include <dmusicc.h>
  15. #include <dmusici.h>
  16. #include <dsound.h>
  17.  
  18. // Required Windows libs
  19. #pragma comment(lib, "msacm32")
  20. #pragma comment(lib, "winmm")
  21.  
  22. // Link DirectX 8 libs
  23. #pragma comment(lib, "dxguid")
  24. #pragma comment(lib, "dsound")
  25.  
  26. // Conditionally include, define, and link error functions
  27. #if(DIRECTSOUND_VERSION==0x0900)
  28. #include <dxerr9.h>
  29. #define DXGetErrorString DXGetErrorString9
  30. #pragma comment(lib, "dxerr9")
  31. #else
  32. #include <dxerr8.h>
  33. #define DXGetErrorString DXGetErrorString8
  34. #pragma comment(lib, "dxerr8")
  35. #endif
  36.  
  37. // Ogg Vorbis libs
  38. #ifdef USE_VORBIS
  39. #ifdef _DEBUG
  40. #pragma comment(lib, "ogg_static_d")
  41. #pragma comment(lib, "vorbis_static_d")
  42. #pragma comment(lib, "vorbisfile_static_d")
  43. #else
  44. #pragma comment(lib, "ogg_static")
  45. #pragma comment(lib, "vorbis_static")
  46. #pragma comment(lib, "vorbisfile_static")
  47. #endif
  48. #endif // USE_VORBIS
  49.  
  50.  
  51. #ifdef USE_WMA
  52. #pragma comment(lib, "wmstub.lib")
  53. #pragma comment(lib, "wmvcore.lib")
  54. #endif // USE_WMA
  55.  
  56.  
  57. #endif // __AUDIO_COMMON_H
  58.