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 / duel / ds3dutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-15  |  1.0 KB  |  38 lines

  1. #ifndef DS3DUTIL_HEADER
  2. #define DS3DUTIL_HEADER
  3.  
  4. /*==========================================================================
  5.  *
  6.  *  Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  7.  *
  8.  *  File:       ds3dutil.h
  9.  *  Content:    Header file prototyping routines for dealing with
  10.  *              sounds from resources.   Much of this stuff
  11.  *              (especially the wave file parsing code) is copied
  12.  *              from dsutil.cpp
  13.  *
  14.  *
  15.  ***************************************************************************/
  16. #include <dsound.h>
  17.  
  18. typedef struct
  19. {
  20. LPDIRECTSOUNDBUFFER lpDirectSoundBuffer;
  21. LPTSTR lpName;
  22. LPDIRECTSOUND lpDS;
  23. }
  24. WAVEDATA, *LPWAVEDATA;
  25.  
  26.  
  27. BOOL WaveInit(LPWAVEDATA *lplpWD, LPDIRECTSOUND lpDS, LPCTSTR lpName);
  28. BOOL WaveGetBuffers(LPWAVEDATA lpWD,
  29.                     LPDIRECTSOUNDBUFFER   *ppDirectSoundBuffer,
  30.                     LPDIRECTSOUND3DBUFFER *ppDirectSound3DBuffer,
  31.                     BOOL bOurShip);
  32. void WaveFree(LPWAVEDATA lpWD);
  33. BOOL WaveReload(LPWAVEDATA lpWD);
  34.  
  35.  
  36. #endif
  37.  
  38.