home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / mmddk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  4.7 KB  |  141 lines

  1. // -----------------------------------------------------------------------------
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  4. //  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  5. //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  6. //  PARTICULAR PURPOSE.
  7. //  Copyright (c) 1995, 1996, 1997  Microsoft Corporation
  8. //  
  9. // -----------------------------------------------------------------------------
  10. //
  11. //  MMDDK.H - Include file for Multimedia Device Development Kit
  12. //
  13. //  Note: You must include the WINDOWS.H header file before including this file.
  14. //  
  15. // -----------------------------------------------------------------------------
  16. #ifndef _INC_MMDDK
  17. #define _INC_MMDDK
  18.  
  19. #include "pshpack1.h"   // Assume byte packing throughout
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24.  
  25. /*    If defined, the following flags inhibit inclusion
  26.  *    of the indicated items:
  27.  *
  28.  *        MMNOWAVEDEV         - Waveform support
  29.  */
  30. #ifdef MMNOWAVE
  31.   #define MMNOWAVEDEV
  32. #endif
  33.  
  34.  
  35. #ifndef MMNOWAVEDEV
  36. /****************************************************************************
  37.  
  38.                Waveform device driver support
  39.  
  40. ****************************************************************************/
  41.  
  42. // maximum number of wave device drivers loaded
  43. #define MAXWAVEDRIVERS 10
  44.  
  45.  
  46. //------------------------------------------------------------------------------
  47. //
  48. //  @doc    WDEV_EXT
  49. //
  50. //  @struct WAVEOPENDESC | 
  51. //          The WAVEOPENDESC structure contains information needed by 
  52. //          waveform input and output drivers. The 
  53. //          structure is created by waveapi.dll†and passed to the 
  54. //          driver with a <m WODM_OPEN>†or <m WIDM_OPEN> message. 
  55. //  
  56. //  @field  HWAVE | hWave |
  57. //          Specifies the clientís handle to the device, as assigned 
  58. //          by waveapi.dll.
  59. //  
  60. //  @field  LPWAVEFORMATEX | lpFormat |
  61. //          Points to a WAVEFORMATEX structure, indicating the 
  62. //          waveform data format requested by the client. (The 
  63. //          WAVEFORMATEX structure is described in the Win32 SDK.) 
  64. //  
  65. //  @field  DWORD | dwCallback |
  66. //          Specifies the pointer to the callback function inside waveapi.dll.
  67. //  
  68. //  @field  DWORD | dwInstance |
  69. //          Contains the dwCallbackInstance†argument that the client 
  70. //          specified when calling the <f waveInOpen>†or <f waveOutOpen>
  71. //          function. 
  72. //  
  73. //  @field  UINT | uMappedDeviceID | 
  74. //          For wave mapper, contains device identifier of mapped device. 
  75. //
  76. //------------------------------------------------------------------------------
  77. typedef struct waveopendesc_tag {
  78.     HWAVE          hWave;             // handle
  79.     LPWAVEFORMATEX lpFormat;          // format of wave data
  80.     DWORD          dwCallback;        // callback
  81.     DWORD          dwInstance;        // app's private instance information
  82.     UINT           uMappedDeviceID;   // device to map to if WAVE_MAPPED set
  83. } WAVEOPENDESC;
  84. typedef WAVEOPENDESC FAR *LPWAVEOPENDESC;
  85.  
  86. // messages sent to wodMessage() entry-point function
  87. #define WODM_GETNUMDEVS       3
  88. #define WODM_GETDEVCAPS       4
  89. #define WODM_OPEN             5
  90. #define WODM_CLOSE            6
  91. #define WODM_PREPARE          7
  92. #define WODM_UNPREPARE        8
  93. #define WODM_WRITE            9
  94. #define WODM_PAUSE            10
  95. #define WODM_RESTART          11
  96. #define WODM_RESET            12
  97. #define WODM_GETPOS           13
  98. #define WODM_GETPITCH         14
  99. #define WODM_SETPITCH         15
  100. #define WODM_GETVOLUME        16
  101. #define WODM_SETVOLUME        17
  102. #define WODM_GETPLAYBACKRATE  18
  103. #define WODM_SETPLAYBACKRATE  19
  104. #define WODM_BREAKLOOP        20
  105. #define WODM_MAPPER_STATUS              (DRVM_MAPPER_STATUS + 0)
  106. #define WAVEOUT_MAPPER_STATUS_DEVICE    0
  107. #define WAVEOUT_MAPPER_STATUS_MAPPED    1
  108. #define WAVEOUT_MAPPER_STATUS_FORMAT    2
  109. #define WODM_BUSY             21
  110.  
  111. // messages sent to widMessage() entry-point function
  112. #define WIDM_GETNUMDEVS  50
  113. #define WIDM_GETDEVCAPS  51
  114. #define WIDM_OPEN        52
  115. #define WIDM_CLOSE       53
  116. #define WIDM_PREPARE     54
  117. #define WIDM_UNPREPARE   55
  118. #define WIDM_ADDBUFFER   56
  119. #define WIDM_START       57
  120. #define WIDM_STOP        58
  121. #define WIDM_RESET       59
  122. #define WIDM_GETPOS      60
  123. #define WIDM_MAPPER_STATUS              (DRVM_MAPPER_STATUS + 0)
  124. #define WAVEIN_MAPPER_STATUS_DEVICE     0
  125. #define WAVEIN_MAPPER_STATUS_MAPPED     1
  126. #define WAVEIN_MAPPER_STATUS_FORMAT     2
  127.  
  128. #endif // ifndef MMNOWAVEDEV
  129.  
  130.  
  131.  
  132. #define MMDDKINC
  133.  
  134. #ifdef __cplusplus
  135. }
  136. #endif  /* __cplusplus */
  137.  
  138. #include "poppack.h"        /* Revert to default packing */
  139.  
  140. #endif /* _INC_MMDDK */
  141.