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

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:       wave.h
  6.  *  Content:    wave header
  7.  *
  8.  ***************************************************************************/
  9. #ifndef __WAVE_INCLUDED__
  10. #define __WAVE_INCLUDED__
  11. #include <windows.h>
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. #define WAVEVERSION 1
  18.  
  19. #ifndef ER_MEM
  20. #define ER_MEM              0xe000
  21. #endif
  22.  
  23. #ifndef ER_CANNOTOPEN
  24. #define ER_CANNOTOPEN       0xe100
  25. #endif
  26.  
  27. #ifndef ER_NOTWAVEFILE
  28. #define ER_NOTWAVEFILE      0xe101
  29. #endif
  30.  
  31. #ifndef ER_CANNOTREAD
  32. #define ER_CANNOTREAD       0xe102
  33. #endif
  34.  
  35. #ifndef ER_CORRUPTWAVEFILE
  36. #define ER_CORRUPTWAVEFILE  0xe103
  37. #endif
  38.  
  39. #ifndef ER_CANNOTWRITE
  40. #define ER_CANNOTWRITE      0xe104
  41. #endif
  42.  
  43.  
  44.  
  45. int WaveOpenFile(char *, HMMIO *, WAVEFORMATEX **, MMCKINFO *);
  46. int WaveStartDataRead(HMMIO *, MMCKINFO *, MMCKINFO *);
  47. int WaveReadFile(HMMIO, UINT, BYTE *, MMCKINFO *, UINT *);
  48. int WaveCloseReadFile(HMMIO *, WAVEFORMATEX **);
  49.  
  50. int WaveCreateFile(char *, HMMIO *, WAVEFORMATEX *, MMCKINFO *, MMCKINFO *);
  51. int WaveStartDataWrite(HMMIO *, MMCKINFO *, MMIOINFO *);
  52. int WaveWriteFile(HMMIO, UINT, BYTE *, MMCKINFO *, UINT *, MMIOINFO *);
  53. int WaveCloseWriteFile(HMMIO *, MMCKINFO *, MMCKINFO *, MMIOINFO *, DWORD);
  54.  
  55. int WaveLoadFile(char *, UINT *, WAVEFORMATEX **, BYTE **);
  56. int WaveSaveFile(char *, UINT, DWORD, WAVEFORMATEX *, BYTE *);
  57.  
  58. int WaveCopyUselessChunks(HMMIO *, MMCKINFO *, MMCKINFO *, HMMIO *, MMCKINFO *, MMCKINFO *);
  59. BOOL riffCopyChunk(HMMIO, HMMIO, const LPMMCKINFO);
  60.  
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #endif
  67.  
  68.