home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / IKLOWNS / CGWAVE.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  2KB  |  81 lines

  1. /*===========================================================================*\
  2. |
  3. |  File:        cgwave.h
  4. |
  5. |  Description: 
  6. |       
  7. |-----------------------------------------------------------------------------
  8. |
  9. |  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  10. |
  11. |  Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
  12. |
  13. \*===========================================================================*/
  14. /**************************************************************************
  15.  
  16.     (C) Copyright 1995-1996 Microsoft Corp.  All rights reserved.
  17.  
  18.     You have a royalty-free right to use, modify, reproduce and 
  19.     distribute the Sample Files (and/or any modified version) in 
  20.     any way you find useful, provided that you agree that 
  21.     Microsoft has no warranty obligations or liability for any 
  22.     Sample Application Files which are modified. 
  23.  
  24.     we do not recomend you base your game on IKlowns, start with one of
  25.     the other simpler sample apps in the GDK
  26.  
  27.  **************************************************************************/
  28.  
  29. #ifndef _CGWAVE_H
  30. #define _CGWAVE_H
  31. #include <mmsystem.h>
  32.  
  33. #define WAVEVERSION 1
  34.  
  35. #ifndef ER_MEM
  36. #define ER_MEM          0xe000
  37. #endif
  38.  
  39. #ifndef ER_CANNOTOPEN
  40. #define ER_CANNOTOPEN       0xe100
  41. #endif
  42.  
  43. #ifndef ER_NOTWAVEFILE
  44. #define ER_NOTWAVEFILE      0xe101
  45. #endif
  46.  
  47. #ifndef ER_CANNOTREAD
  48. #define ER_CANNOTREAD       0xe102
  49. #endif
  50.  
  51. #ifndef ER_CORRUPTWAVEFILE
  52. #define ER_CORRUPTWAVEFILE  0xe103
  53. #endif
  54.  
  55. #ifndef ER_CANNOTWRITE
  56. #define ER_CANNOTWRITE      0xe104
  57. #endif
  58.  
  59.  
  60. int WaveOpenFile(
  61.     char        *pszFileName,
  62.     HMMIO       *phmmioIn,
  63.     WAVEFORMATEX    **ppwfxInfo,
  64.     MMCKINFO    *pckInRIFF
  65. );
  66.  
  67. int WaveStartDataRead(
  68.     HMMIO       *phmmioIn,
  69.     MMCKINFO    *pckIn,
  70.     MMCKINFO    *pckInRIFF
  71. );
  72.  
  73. int WaveReadFile(
  74.     HMMIO       hmmioIn,
  75.     UINT        cbRead,
  76.     BYTE        *pbDest,
  77.     MMCKINFO    *pckIn,
  78.     UINT        *cbActualRead
  79. );
  80. #endif
  81.