2 * MMSYSTEM - Multimedia Wine Extension ... :-)
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
14 typedef LPSTR HPSTR
; /* a huge version of LPSTR */
15 typedef LPCSTR HPCSTR
; /* a huge version of LPCSTR */
19 typedef LRESULT
CALLBACK (*DRIVERPROC
)(DWORD
,HDRVR
,UINT
,LPARAM
,LPARAM
);
21 #define MAXWAVEDRIVERS 10
22 #define MAXMIDIDRIVERS 10
23 #define MAXAUXDRIVERS 10
24 #define MAXMCIDRIVERS 32
25 #define MAXMIXERDRIVERS 10
27 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
28 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
29 #define MAX_JOYSTICKOEMVXDNAME 260
31 typedef WORD VERSION
; /* major (high byte), minor (low byte) */
35 typedef DWORD MCIERROR
;
37 typedef UINT MMVERSION
;
40 typedef UINT MCIDEVICEID
;
42 typedef UINT MMRESULT
;
66 #define TIME_MS 0x0001 /* time in milliseconds */
67 #define TIME_SAMPLES 0x0002 /* number of wave samples */
68 #define TIME_BYTES 0x0004 /* current byte offset */
69 #define TIME_SMPTE 0x0008 /* SMPTE time */
70 #define TIME_MIDI 0x0010 /* MIDI time */
71 #define TIME_TICKS 0x0020 /* MIDI ticks */
73 #define MM_JOY1MOVE 0x3A0 /* joystick */
74 #define MM_JOY2MOVE 0x3A1
75 #define MM_JOY1ZMOVE 0x3A2
76 #define MM_JOY2ZMOVE 0x3A3
77 #define MM_JOY1BUTTONDOWN 0x3B5
78 #define MM_JOY2BUTTONDOWN 0x3B6
79 #define MM_JOY1BUTTONUP 0x3B7
80 #define MM_JOY2BUTTONUP 0x3B8
82 #define MM_MCINOTIFY 0x3B9 /* MCI */
84 #define MM_WOM_OPEN 0x3BB /* waveform output */
85 #define MM_WOM_CLOSE 0x3BC
86 #define MM_WOM_DONE 0x3BD
88 #define MM_WIM_OPEN 0x3BE /* waveform input */
89 #define MM_WIM_CLOSE 0x3BF
90 #define MM_WIM_DATA 0x3C0
92 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
93 #define MM_MIM_CLOSE 0x3C2
94 #define MM_MIM_DATA 0x3C3
95 #define MM_MIM_LONGDATA 0x3C4
96 #define MM_MIM_ERROR 0x3C5
97 #define MM_MIM_LONGERROR 0x3C6
99 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
100 #define MM_MOM_CLOSE 0x3C8
101 #define MM_MOM_DONE 0x3C9
102 #define MM_MOM_POSITIONCB 0x3CA
104 #define MM_MIM_MOREDATA 0x3CC
106 #define MMSYSERR_BASE 0
107 #define WAVERR_BASE 32
108 #define MIDIERR_BASE 64
109 #define TIMERR_BASE 96
110 #define JOYERR_BASE 160
111 #define MCIERR_BASE 256
113 #define MCI_STRING_OFFSET 512
114 #define MCI_VD_OFFSET 1024
115 #define MCI_CD_OFFSET 1088
116 #define MCI_WAVE_OFFSET 1152
117 #define MCI_SEQ_OFFSET 1216
119 #define MMSYSERR_NOERROR 0 /* no error */
120 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
121 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
122 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
123 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
124 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
125 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
126 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
127 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
128 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
129 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
130 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
131 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
133 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
134 #define CALLBACK_NULL 0x00000000l /* no callback */
135 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
136 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
137 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
138 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
139 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
141 #define DRV_LOAD 0x0001
142 #define DRV_ENABLE 0x0002
143 #define DRV_OPEN 0x0003
144 #define DRV_CLOSE 0x0004
145 #define DRV_DISABLE 0x0005
146 #define DRV_FREE 0x0006
147 #define DRV_CONFIGURE 0x0007
148 #define DRV_QUERYCONFIGURE 0x0008
149 #define DRV_INSTALL 0x0009
150 #define DRV_REMOVE 0x000A
151 #define DRV_EXITSESSION 0x000B
152 #define DRV_EXITAPPLICATION 0x000C
153 #define DRV_POWER 0x000F
155 #define DRV_RESERVED 0x0800
156 #define DRV_USER 0x4000
158 #define DRVCNF_CANCEL 0x0000
159 #define DRVCNF_OK 0x0001
160 #define DRVCNF_RESTART 0x0002
162 #define DRVEA_NORMALEXIT 0x0001
163 #define DRVEA_ABNORMALEXIT 0x0002
165 #define DRV_SUCCESS 0x0001
166 #define DRV_FAILURE 0x0000
168 #define GND_FIRSTINSTANCEONLY 0x00000001
170 #define GND_FORWARD 0x00000000
171 #define GND_REVERSE 0x00000002
175 LPCWSTR lpszDCISectionName
;
176 LPCWSTR lpszDCIAliasName
;
177 } DRVCONFIGINFO
, *LPDRVCONFIGINFO
;
180 LRESULT WINAPI
DefDriverProc(DWORD dwDriverIdentifier
, HDRVR hdrvr
,
181 UINT Msg
, LPARAM lParam1
, LPARAM lParam2
);
182 HDRVR WINAPI
OpenDriverA(LPCSTR szDriverName
, LPCSTR szSectionName
,
184 HDRVR WINAPI
OpenDriverW(LPCWSTR szDriverName
, LPCWSTR szSectionName
,
186 #define OpenDriver WINELIB_NAME_AW(OpenDriver)
187 LRESULT WINAPI
CloseDriver(HDRVR hDriver
, LPARAM lParam1
, LPARAM lParam2
);
188 LRESULT WINAPI
SendDriverMessage(HDRVR hDriver
, UINT message
,
189 LPARAM lParam1
, LPARAM lParam2
);
190 HMODULE WINAPI
GetDriverModuleHandle(HDRVR hDriver
);
192 DWORD WINAPI
GetDriverFlags(HDRVR hDriver
);
194 /* this call (GetDriverFlags) is not documented, nor the flags returned.
195 * here are Wine only definitions
197 #define WINE_GDF_EXIST 0x80000000
198 #define WINE_GDF_16BIT 0x10000000
201 typedef void CALLBACK (*LPDRVCALLBACK
) (HDRVR h
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
203 #define MM_MICROSOFT 1 /* Microsoft Corp. */
205 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
206 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
208 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
209 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
210 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
211 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
212 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
214 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
216 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
217 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
219 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
222 UINT WINAPI
mmsystemGetVersion(void);
223 BOOL WINAPI
sndPlaySoundA(LPCSTR lpszSound
, UINT fuSound
);
224 BOOL WINAPI
sndPlaySoundW(LPCWSTR lpszSound
, UINT fuSound
);
225 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
226 BOOL WINAPI
PlaySoundA(LPCSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
227 BOOL WINAPI
PlaySoundW(LPCWSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
228 #define PlaySound WINELIB_NAME_AW(PlaySound)
230 #define SND_SYNC 0x0000 /* play synchronously (default) */
231 #define SND_ASYNC 0x0001 /* play asynchronously */
232 #define SND_NODEFAULT 0x0002 /* don't use default sound */
233 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
234 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
235 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
237 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
238 #define SND_ALIAS 0x00010000L /* name is a registry alias */
239 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
240 #define SND_FILENAME 0x00020000L /* name is file name */
241 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
242 #define SND_PURGE 0x00000040L /* purge all sounds */
243 #define SND_APPLICATION 0x00000080L /* look for application specific association */
245 /* waveform audio error return values */
246 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
247 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
248 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
249 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
250 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
252 typedef LPDRVCALLBACK LPWAVECALLBACK
;
254 #define WOM_OPEN MM_WOM_OPEN
255 #define WOM_CLOSE MM_WOM_CLOSE
256 #define WOM_DONE MM_WOM_DONE
257 #define WIM_OPEN MM_WIM_OPEN
258 #define WIM_CLOSE MM_WIM_CLOSE
259 #define WIM_DATA MM_WIM_DATA
261 #define WAVE_MAPPER (-1)
263 #define WAVE_FORMAT_QUERY 0x0001
264 #define WAVE_ALLOWSYNC 0x0002
265 #define WAVE_MAPPED 0x0004
266 #define WAVE_FORMAT_DIRECT 0x0008
267 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
269 #define WAVE_DIRECTSOUND 0x0080
272 typedef struct wavehdr_tag
{
273 LPSTR lpData
; /* pointer to locked data buffer */
274 DWORD dwBufferLength
; /* length of data buffer */
275 DWORD dwBytesRecorded
;/* used for input only */
276 DWORD dwUser
; /* for client's use */
277 DWORD dwFlags
; /* assorted flags (see defines) */
278 DWORD dwLoops
; /* loop control counter */
280 struct wavehdr_tag
*lpNext
; /* reserved for driver */
281 DWORD reserved
; /* reserved for driver */
282 } WAVEHDR
, *PWAVEHDR
, *NPWAVEHDR
, *LPWAVEHDR
;
284 #define WHDR_DONE 0x00000001 /* done bit */
285 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
286 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
287 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
288 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
291 WORD wMid
; /* manufacturer ID */
292 WORD wPid
; /* product ID */
293 MMVERSION vDriverVersion
; /* version of the driver */
294 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
295 DWORD dwFormats
; /* formats supported */
296 WORD wChannels
; /* number of sources supported */
297 WORD wReserved1
; /* padding */
298 DWORD dwSupport
; /* functionality supported by driver */
299 } WAVEOUTCAPSA
, *LPWAVEOUTCAPSA
;
302 WORD wMid
; /* manufacturer ID */
303 WORD wPid
; /* product ID */
304 MMVERSION vDriverVersion
; /* version of the driver */
305 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
306 DWORD dwFormats
; /* formats supported */
307 WORD wChannels
; /* number of sources supported */
308 WORD wReserved1
; /* padding */
309 DWORD dwSupport
; /* functionality supported by driver */
310 } WAVEOUTCAPSW
, *LPWAVEOUTCAPSW
;
311 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS
)
312 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS
)
314 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
315 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
316 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
317 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
318 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
319 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
320 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
323 WORD wMid
; /* manufacturer ID */
324 WORD wPid
; /* product ID */
325 MMVERSION vDriverVersion
; /* version of the driver */
326 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
327 DWORD dwFormats
; /* formats supported */
328 WORD wChannels
; /* number of channels supported */
330 } WAVEINCAPSA
, *LPWAVEINCAPSA
;
332 WORD wMid
; /* manufacturer ID */
333 WORD wPid
; /* product ID */
334 MMVERSION vDriverVersion
; /* version of the driver */
335 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
336 DWORD dwFormats
; /* formats supported */
337 WORD wChannels
; /* number of channels supported */
339 } WAVEINCAPSW
, *LPWAVEINCAPSW
;
340 DECL_WINELIB_TYPE_AW(WAVEINCAPS
)
341 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS
)
343 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
344 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
345 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
346 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
347 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
348 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
349 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
350 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
351 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
352 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
353 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
354 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
355 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
357 /* General format structure common to all formats, same for Win16 and Win32 */
359 WORD wFormatTag
; /* format type */
360 WORD nChannels
; /* number of channels */
361 DWORD nSamplesPerSec
; /* sample rate */
362 DWORD nAvgBytesPerSec
;/* for buffer estimation */
363 WORD nBlockAlign
; /* block size of data */
364 } WAVEFORMAT
, *LPWAVEFORMAT
;
366 #define WAVE_FORMAT_PCM 1
371 } PCMWAVEFORMAT
, *LPPCMWAVEFORMAT
;
373 #ifndef _WAVEFORMATEX_
374 #define _WAVEFORMATEX_
375 /* dito same for Win16 / Win32 */
377 WORD wFormatTag
; /* format type */
378 WORD nChannels
; /* number of channels (i.e. mono, stereo...) */
379 DWORD nSamplesPerSec
; /* sample rate */
380 DWORD nAvgBytesPerSec
;/* for buffer estimation */
381 WORD nBlockAlign
; /* block size of data */
382 WORD wBitsPerSample
; /* number of bits per sample of mono data */
383 WORD cbSize
; /* the count in bytes of the size of */
384 /* extra information (after cbSize) */
385 } WAVEFORMATEX
, *LPWAVEFORMATEX
, *NPWAVEFORMATEX
, *PWAVEFORMATEX
;
388 UINT WINAPI
waveOutGetNumDevs(void);
389 UINT WINAPI
waveOutGetDevCapsA(UINT
,LPWAVEOUTCAPSA
,UINT
);
390 UINT WINAPI
waveOutGetDevCapsW(UINT
,LPWAVEOUTCAPSW
,UINT
);
391 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
392 UINT WINAPI
waveOutGetVolume(UINT
,DWORD
*);
393 UINT WINAPI
waveOutSetVolume(UINT
,DWORD
);
394 UINT WINAPI
waveOutGetErrorTextA(UINT
,LPSTR
,UINT
);
395 UINT WINAPI
waveOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
396 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
397 UINT WINAPI
waveOutOpen(HWAVEOUT
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
398 UINT WINAPI
waveOutClose(HWAVEOUT
);
399 UINT WINAPI
waveOutPrepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
400 UINT WINAPI
waveOutUnprepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
401 UINT WINAPI
waveOutWrite(HWAVEOUT
,WAVEHDR
*,UINT
);
402 UINT WINAPI
waveOutPause(HWAVEOUT
);
403 UINT WINAPI
waveOutRestart(HWAVEOUT
);
404 UINT WINAPI
waveOutReset(HWAVEOUT
);
405 UINT WINAPI
waveOutBreakLoop(HWAVEOUT
);
406 UINT WINAPI
waveOutGetPosition(HWAVEOUT
,LPMMTIME
,UINT
);
407 UINT WINAPI
waveOutGetPitch(HWAVEOUT
,DWORD
*);
408 UINT WINAPI
waveOutSetPitch(HWAVEOUT
,DWORD
);
409 UINT WINAPI
waveOutGetPlaybackRate(HWAVEOUT
,DWORD
*);
410 UINT WINAPI
waveOutSetPlaybackRate(HWAVEOUT
,DWORD
);
411 UINT WINAPI
waveOutGetID(HWAVEOUT
,UINT
*);
412 DWORD WINAPI
waveOutMessage(HWAVEOUT
,UINT
,DWORD
,DWORD
);
413 UINT WINAPI
waveInGetNumDevs(void);
414 UINT WINAPI
waveInGetDevCapsA(UINT
,LPWAVEINCAPSA
,UINT
);
415 UINT WINAPI
waveInGetDevCapsW(UINT
,LPWAVEINCAPSW
,UINT
);
416 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
417 UINT WINAPI
waveInGetErrorTextA(UINT
,LPSTR
,UINT
);
418 UINT WINAPI
waveInGetErrorTextW(UINT
,LPWSTR
,UINT
);
419 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
420 UINT WINAPI
waveInOpen(HWAVEIN
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
421 UINT WINAPI
waveInClose(HWAVEIN
);
422 UINT WINAPI
waveInPrepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
423 UINT WINAPI
waveInUnprepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
424 UINT WINAPI
waveInAddBuffer(HWAVEIN
,WAVEHDR
*,UINT
);
425 UINT WINAPI
waveInStart(HWAVEIN
);
426 UINT WINAPI
waveInStop(HWAVEIN
);
427 UINT WINAPI
waveInReset(HWAVEIN
);
428 UINT WINAPI
waveInGetPosition(HWAVEIN
,LPMMTIME
,UINT
);
429 UINT WINAPI
waveInGetID(HWAVEIN
,UINT
*);
430 DWORD WINAPI
waveInMessage(HWAVEIN
,UINT
,DWORD
,DWORD
);
432 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
433 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
434 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
435 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
436 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
437 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
438 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
440 typedef LPDRVCALLBACK LPMIDICALLBACK
;
441 #define MIDIPATCHSIZE 128
442 typedef WORD PATCHARRAY
[MIDIPATCHSIZE
];
443 typedef WORD
*LPPATCHARRAY
;
444 typedef WORD KEYARRAY
[MIDIPATCHSIZE
];
445 typedef WORD
*LPKEYARRAY
;
447 #define MIM_OPEN MM_MIM_OPEN
448 #define MIM_CLOSE MM_MIM_CLOSE
449 #define MIM_DATA MM_MIM_DATA
450 #define MIM_LONGDATA MM_MIM_LONGDATA
451 #define MIM_ERROR MM_MIM_ERROR
452 #define MIM_LONGERROR MM_MIM_LONGERROR
453 #define MIM_MOREDATA MM_MIM_MOREDATA
455 #define MOM_OPEN MM_MOM_OPEN
456 #define MOM_CLOSE MM_MOM_CLOSE
457 #define MOM_DONE MM_MOM_DONE
458 #define MOM_POSITIONCB MM_MOM_POSITIONCB
460 /* device ID for MIDI mapper */
462 #define MIDIMAPPER (-1)
463 #define MIDI_MAPPER (-1)
465 /* Only on Win95 and up */
466 #define MIDI_IO_STATUS 0x00000020L
468 /* flags for wFlags parm of
469 midiOutCachePatches(),
470 midiOutCacheDrumPatches() */
471 #define MIDI_CACHE_ALL 1
472 #define MIDI_CACHE_BESTFIT 2
473 #define MIDI_CACHE_QUERY 3
474 #define MIDI_UNCACHE 4
477 WORD wMid
; /* manufacturer ID */
478 WORD wPid
; /* product ID */
479 MMVERSION vDriverVersion
; /* version of the driver */
480 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
481 WORD wTechnology
; /* type of device */
482 WORD wVoices
; /* # of voices (internal synth only) */
483 WORD wNotes
; /* max # of notes (internal synth only) */
484 WORD wChannelMask
; /* channels used (internal synth only) */
485 DWORD dwSupport
; /* functionality supported by driver */
486 } MIDIOUTCAPSA
, *LPMIDIOUTCAPSA
;
489 WORD wMid
; /* manufacturer ID */
490 WORD wPid
; /* product ID */
491 MMVERSION vDriverVersion
; /* version of the driver */
492 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
493 WORD wTechnology
; /* type of device */
494 WORD wVoices
; /* # of voices (internal synth only) */
495 WORD wNotes
; /* max # of notes (internal synth only) */
496 WORD wChannelMask
; /* channels used (internal synth only) */
497 DWORD dwSupport
; /* functionality supported by driver */
498 } MIDIOUTCAPSW
, *LPMIDIOUTCAPSW
;
500 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS
)
501 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS
)
503 #define MOD_MIDIPORT 1 /* output port */
504 #define MOD_SYNTH 2 /* generic internal synth */
505 #define MOD_SQSYNTH 3 /* square wave internal synth */
506 #define MOD_FMSYNTH 4 /* FM internal synth */
507 #define MOD_MAPPER 5 /* MIDI mapper */
509 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
510 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
511 #define MIDICAPS_CACHE 0x0004
512 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
515 WORD wMid
; /* manufacturer ID */
516 WORD wPid
; /* product ID */
517 MMVERSION vDriverVersion
; /* version of the driver */
518 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
519 DWORD dwSupport
; /* included in win95 and higher */
520 } MIDIINCAPSA
, *LPMIDIINCAPSA
;
523 WORD wMid
; /* manufacturer ID */
524 WORD wPid
; /* product ID */
525 MMVERSION vDriverVersion
; /* version of the driver */
526 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
527 DWORD dwSupport
; /* included in win95 and higher */
528 } MIDIINCAPSW
, *LPMIDIINCAPSW
;
530 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
531 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
533 /* It seems that Win32 has a slightly different structure than Win 16.
536 typedef struct midihdr_tag
{
537 LPSTR lpData
; /* pointer to locked data block */
538 DWORD dwBufferLength
; /* length of data in data block */
539 DWORD dwBytesRecorded
;/* used for input only */
540 DWORD dwUser
; /* for client's use */
541 DWORD dwFlags
; /* assorted flags (see defines) */
542 struct midihdr_tag
*lpNext
; /* reserved for driver */
543 DWORD reserved
; /* reserved for driver */
544 DWORD dwOffset
; /* offset of playback in case of
546 DWORD dwReserved
[4]; /* reserved for driver */
547 } MIDIHDR
, *LPMIDIHDR
;
549 #define MHDR_DONE 0x00000001 /* done bit */
550 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
551 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
552 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
557 } MIDIPROPTEMPO
, *LPMIDIPROPTEMPO
;
562 } MIDIPROPTIMEDIV
, *LPMIDIPROPTIMEDIV
;
564 #define MIDIPROP_GET 0x40000000
565 #define MIDIPROP_SET 0x80000000
566 #define MIDIPROP_TEMPO 0x00000002
567 #define MIDIPROP_TIMEDIV 0x00000001
570 DWORD dwDeltaTime
; /* Time, in MIDI ticks, between the previous
571 * event and the current event. */
572 DWORD dwStreamID
; /* Reserved; must be zero. */
573 DWORD dwEvent
; /* event => see MEVT_XXX macros */
574 DWORD dwParms
[1]; /* extra pmts to dwEvent if F_LONG is set */
575 } MIDIEVENT
, *LPMIDIEVENT
;
577 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
578 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
580 #define MEVT_F_CALLBACK 0x40000000l
581 #define MEVT_F_LONG 0x80000000l
582 #define MEVT_F_SHORT 0x00000000l
583 #define MEVT_COMMENT ((BYTE)0x82)
584 #define MEVT_LONGMSG ((BYTE)0x80)
585 #define MEVT_NOP ((BYTE)0x02)
586 #define MEVT_SHORTMSG ((BYTE)0x00)
587 #define MEVT_TEMPO ((BYTE)0x01)
588 #define MEVT_VERSION ((BYTE)0x84)
590 UINT WINAPI
midiOutGetNumDevs(void);
591 UINT WINAPI
midiOutGetDevCapsA(UINT
,LPMIDIOUTCAPSA
,UINT
);
592 UINT WINAPI
midiOutGetDevCapsW(UINT
,LPMIDIOUTCAPSW
,UINT
);
593 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
594 UINT WINAPI
midiOutGetVolume(UINT
,DWORD
*);
595 UINT WINAPI
midiOutSetVolume(UINT
,DWORD
);
596 UINT WINAPI
midiOutGetErrorTextA(UINT
,LPSTR
,UINT
);
597 UINT WINAPI
midiOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
598 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
599 UINT WINAPI
midiOutOpen(HMIDIOUT
*,UINT
,DWORD
,DWORD
,DWORD
);
600 UINT WINAPI
midiOutClose(HMIDIOUT
);
601 UINT WINAPI
midiOutPrepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
602 UINT WINAPI
midiOutUnprepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
603 UINT WINAPI
midiOutShortMsg(HMIDIOUT
,DWORD
);
604 UINT WINAPI
midiOutLongMsg(HMIDIOUT
,MIDIHDR
*,UINT
);
605 UINT WINAPI
midiOutReset(HMIDIOUT
);
606 UINT WINAPI
midiOutCachePatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
607 UINT WINAPI
midiOutCacheDrumPatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
608 UINT WINAPI
midiOutGetID(HMIDIOUT
,UINT
*);
609 DWORD WINAPI
midiOutMessage(HMIDIOUT
,UINT
,DWORD
,DWORD
);
611 UINT WINAPI
midiInGetNumDevs(void);
612 UINT WINAPI
midiInGetDevCapsA(UINT
,LPMIDIINCAPSA
,UINT
);
613 UINT WINAPI
midiInGetDevCapsW(UINT
,LPMIDIINCAPSW
,UINT
);
614 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
615 UINT WINAPI
midiInGetErrorTextA(UINT
,LPSTR
,UINT
);
616 UINT WINAPI
midiInGetErrorTextW(UINT
,LPWSTR
,UINT
);
617 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
618 UINT WINAPI
midiInOpen(HMIDIIN
*,UINT
,DWORD
,DWORD
,DWORD
);
619 UINT WINAPI
midiInClose(HMIDIIN
);
620 UINT WINAPI
midiInPrepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
621 UINT WINAPI
midiInUnprepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
622 UINT WINAPI
midiInAddBuffer(HMIDIIN
,MIDIHDR
*,UINT
);
623 UINT WINAPI
midiInStart(HMIDIIN
);
624 UINT WINAPI
midiInStop(HMIDIIN
);
625 UINT WINAPI
midiInReset(HMIDIIN
);
626 UINT WINAPI
midiInGetID(HMIDIIN
,UINT
*);
627 DWORD WINAPI
midiInMessage(HMIDIIN
,UINT
,DWORD
,DWORD
);
628 MMRESULT WINAPI
midiStreamClose(HMIDISTRM hms
);
629 MMRESULT WINAPI
midiStreamOpen(HMIDISTRM
* phms
, LPUINT uDeviceID
, DWORD cMidi
,
630 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
631 MMRESULT WINAPI
midiStreamOut(HMIDISTRM hms
, LPMIDIHDR lpMidiHdr
, UINT cbMidiHdr
);
632 MMRESULT WINAPI
midiStreamPause(HMIDISTRM hms
);
633 MMRESULT WINAPI
midiStreamPosition(HMIDISTRM hms
, LPMMTIME lpmmt
, UINT cbmmt
);
634 MMRESULT WINAPI
midiStreamProperty(HMIDISTRM hms
, LPBYTE lpPropData
, DWORD dwProperty
);
635 MMRESULT WINAPI
midiStreamRestart(HMIDISTRM hms
);
636 MMRESULT WINAPI
midiStreamStop(HMIDISTRM hms
);
638 #define AUX_MAPPER (-1)
641 WORD wMid
; /* manufacturer ID */
642 WORD wPid
; /* product ID */
643 MMVERSION vDriverVersion
; /* version of the driver */
644 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
645 WORD wTechnology
; /* type of device */
646 WORD wReserved1
; /* padding */
647 DWORD dwSupport
; /* functionality supported by driver */
648 } AUXCAPSA
, *LPAUXCAPSA
;
651 WORD wMid
; /* manufacturer ID */
652 WORD wPid
; /* product ID */
653 MMVERSION vDriverVersion
; /* version of the driver */
654 WCHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
655 WORD wTechnology
; /* type of device */
656 WORD wReserved1
; /* padding */
657 DWORD dwSupport
; /* functionality supported by driver */
658 } AUXCAPSW
, *LPAUXCAPSW
;
660 DECL_WINELIB_TYPE_AW(AUXCAPS
)
661 DECL_WINELIB_TYPE_AW(LPAUXCAPS
)
663 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
664 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
666 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
667 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
669 UINT WINAPI
auxGetNumDevs(void);
670 UINT WINAPI
auxGetDevCapsA(UINT
,LPAUXCAPSA
,UINT
);
671 UINT WINAPI
auxGetDevCapsW(UINT
,LPAUXCAPSW
,UINT
);
672 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
673 UINT WINAPI
auxSetVolume(UINT
,DWORD
);
674 UINT WINAPI
auxGetVolume(UINT
,LPDWORD
);
675 DWORD WINAPI
auxOutMessage(UINT
,UINT
,DWORD
,DWORD
);
677 #define TIMERR_NOERROR (0) /* no error */
678 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
679 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
681 typedef void CALLBACK (*LPTIMECALLBACK
)(UINT uTimerID
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
683 #define TIME_ONESHOT 0x0000 /* program timer for single event */
684 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
685 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
686 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
687 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
692 } TIMECAPS
, *LPTIMECAPS
;
695 MMRESULT WINAPI
timeGetSystemTime(LPMMTIME
,UINT
);
696 DWORD WINAPI
timeGetTime(void); /* same for win32/win16 */
697 MMRESULT WINAPI
timeSetEvent(UINT
,UINT
,LPTIMECALLBACK
,DWORD
,UINT
);
698 MMRESULT WINAPI
timeKillEvent(UINT
);
699 MMRESULT WINAPI
timeGetDevCaps(LPTIMECAPS
,UINT
);
700 MMRESULT WINAPI
timeBeginPeriod(UINT
);
701 MMRESULT WINAPI
timeEndPeriod(UINT
);
703 #define JOYERR_NOERROR (0) /* no error */
704 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
705 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
706 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
708 /* JOYINFO, JOYINFOEX, MM_JOY* */
709 #define JOY_BUTTON1 0x0001
710 #define JOY_BUTTON2 0x0002
711 #define JOY_BUTTON3 0x0004
712 #define JOY_BUTTON4 0x0008
713 #define JOY_BUTTON1CHG 0x0100
714 #define JOY_BUTTON2CHG 0x0200
715 #define JOY_BUTTON3CHG 0x0400
716 #define JOY_BUTTON4CHG 0x0800
718 #define JOYSTICKID1 0
719 #define JOYSTICKID2 1
722 #define JOYCAPS_HASZ 0x0001
723 #define JOYCAPS_HASR 0x0002
724 #define JOYCAPS_HASU 0x0004
725 #define JOYCAPS_HASV 0x0008
726 #define JOYCAPS_HASPOV 0x0010
727 #define JOYCAPS_POV4DIR 0x0020
728 #define JOYCAPS_POVCTS 0x0040
730 /* JOYINFOEX stuff */
731 #define JOY_POVCENTERED (WORD) -1
732 #define JOY_POVFORWARD 0
733 #define JOY_POVRIGHT 9000
734 #define JOY_POVBACKWARD 18000
735 #define JOY_POVLEFT 27000
737 #define JOY_RETURNX 0x00000001
738 #define JOY_RETURNY 0x00000002
739 #define JOY_RETURNZ 0x00000004
740 #define JOY_RETURNR 0x00000008
741 #define JOY_RETURNU 0x00000010
742 #define JOY_RETURNV 0x00000020
743 #define JOY_RETURNPOV 0x00000040
744 #define JOY_RETURNBUTTONS 0x00000080
745 #define JOY_RETURNRAWDATA 0x00000100
746 #define JOY_RETURNPOVCTS 0x00000200
747 #define JOY_RETURNCENTERED 0x00000400
748 #define JOY_USEDEADZONE 0x00000800
749 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
750 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
751 JOY_RETURNPOV | JOY_RETURNBUTTONS)
752 #define JOY_CAL_READALWAYS 0x00010000
753 #define JOY_CAL_READXYONLY 0x00020000
754 #define JOY_CAL_READ3 0x00040000
755 #define JOY_CAL_READ4 0x00080000
756 #define JOY_CAL_READXONLY 0x00100000
757 #define JOY_CAL_READYONLY 0x00200000
758 #define JOY_CAL_READ5 0x00400000
759 #define JOY_CAL_READ6 0x00800000
760 #define JOY_CAL_READZONLY 0x01000000
761 #define JOY_CAL_READRONLY 0x02000000
762 #define JOY_CAL_READUONLY 0x04000000
763 #define JOY_CAL_READVONLY 0x08000000
768 CHAR szPname
[MAXPNAMELEN
];
788 CHAR szRegKey
[MAXPNAMELEN
];
789 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
790 } JOYCAPSA
, *LPJOYCAPSA
;
795 WCHAR szPname
[MAXPNAMELEN
];
815 WCHAR szRegKey
[MAXPNAMELEN
];
816 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
817 } JOYCAPSW
, *LPJOYCAPSW
;
818 DECL_WINELIB_TYPE_AW(JOYCAPS
)
819 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
826 } JOYINFO
, *LPJOYINFO
;
829 DWORD dwSize
; /* size of structure */
830 DWORD dwFlags
; /* flags to indicate what to return */
831 DWORD dwXpos
; /* x position */
832 DWORD dwYpos
; /* y position */
833 DWORD dwZpos
; /* z position */
834 DWORD dwRpos
; /* rudder/4th axis position */
835 DWORD dwUpos
; /* 5th axis position */
836 DWORD dwVpos
; /* 6th axis position */
837 DWORD dwButtons
; /* button states */
838 DWORD dwButtonNumber
; /* current button number pressed */
839 DWORD dwPOV
; /* point of view state */
840 DWORD dwReserved1
; /* reserved for communication between winmm & driver */
841 DWORD dwReserved2
; /* reserved for future expansion */
842 } JOYINFOEX
,*LPJOYINFOEX
;
845 MMRESULT WINAPI
joyGetDevCapsA(UINT
,LPJOYCAPSA
,UINT
);
846 MMRESULT WINAPI
joyGetDevCapsW(UINT
,LPJOYCAPSW
,UINT
);
847 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
848 UINT WINAPI
joyGetNumDevs(void);
849 MMRESULT WINAPI
joyGetPos(UINT
,LPJOYINFO
);
850 MMRESULT WINAPI
joyGetPosEx(UINT
,LPJOYINFOEX
);
851 MMRESULT WINAPI
joyGetThreshold(UINT
,UINT
*);
852 MMRESULT WINAPI
joyReleaseCapture(UINT
);
853 MMRESULT WINAPI
joySetCapture(HWND
,UINT
,UINT
,BOOL
);
854 MMRESULT WINAPI
joySetThreshold(UINT
,UINT
);
856 #define MIXERR_BASE 1024
857 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
858 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
859 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
860 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
865 MMVERSION vDriverVersion
;
866 CHAR szPname
[MAXPNAMELEN
];
869 } MIXERCAPSA
,*LPMIXERCAPSA
;
874 MMVERSION vDriverVersion
;
875 WCHAR szPname
[MAXPNAMELEN
];
878 } MIXERCAPSW
,*LPMIXERCAPSW
;
880 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
881 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
883 #define MIXER_SHORT_NAME_CHARS 16
884 #define MIXER_LONG_NAME_CHARS 64
886 /* MIXERLINE.fdwLine */
887 #define MIXERLINE_LINEF_ACTIVE 0x00000001
888 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
889 #define MIXERLINE_LINEF_SOURCE 0x80000000
892 #define MIXER_OBJECTF_HANDLE 0x80000000L
893 #define MIXER_OBJECTF_MIXER 0x00000000L
894 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
895 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
896 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
897 #define MIXER_OBJECTF_WAVEIN 0x20000000L
898 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
899 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
900 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
901 #define MIXER_OBJECTF_MIDIIN 0x40000000L
902 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
903 #define MIXER_OBJECTF_AUX 0x50000000L
905 /* MIXERLINE.dwComponentType */
906 /* component types for destinations and sources */
907 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
908 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
909 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
910 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
911 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
912 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
913 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
914 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
915 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
916 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
917 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
919 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
920 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
921 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
922 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
923 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
924 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
925 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
926 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
927 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
928 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
929 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
930 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
931 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
933 /* MIXERLINE.Target.dwType */
934 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
935 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
936 #define MIXERLINE_TARGETTYPE_WAVEIN 2
937 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
938 #define MIXERLINE_TARGETTYPE_MIDIIN 4
939 #define MIXERLINE_TARGETTYPE_AUX 5
948 DWORD dwComponentType
;
952 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
953 CHAR szName
[MIXER_LONG_NAME_CHARS
];
959 MMVERSION vDriverVersion
;
960 CHAR szPname
[MAXPNAMELEN
];
962 } MIXERLINEA
, *LPMIXERLINEA
;
971 DWORD dwComponentType
;
975 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
976 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
982 MMVERSION vDriverVersion
;
983 WCHAR szPname
[MAXPNAMELEN
];
985 } MIXERLINEW
, *LPMIXERLINEW
;
987 DECL_WINELIB_TYPE_AW(MIXERLINE
)
988 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
990 /* MIXERCONTROL.fdwControl */
991 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
992 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
993 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
995 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
996 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
997 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
998 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
999 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1000 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1001 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1002 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1003 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1004 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1006 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1008 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1009 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1011 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1013 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1014 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1016 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1017 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1019 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1020 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1021 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1022 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1023 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1024 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1025 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1027 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1028 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1029 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1030 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1031 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1032 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1033 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1034 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1035 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1036 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1037 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1038 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1039 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1040 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1041 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1042 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1043 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1044 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1045 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1046 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1047 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1048 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1049 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1050 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1051 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1052 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1053 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1054 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1055 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1056 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1057 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1063 DWORD dwControlType
;
1065 DWORD cMultipleItems
;
1066 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1067 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1077 DWORD dwReserved
[6];
1082 DWORD dwReserved
[6];
1084 } MIXERCONTROLA
, *LPMIXERCONTROLA
;
1089 DWORD dwControlType
;
1091 DWORD cMultipleItems
;
1092 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1093 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1103 DWORD dwReserved
[6];
1108 DWORD dwReserved
[6];
1110 } MIXERCONTROLW
, *LPMIXERCONTROLW
;
1112 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1113 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1120 DWORD dwControlType
;
1124 LPMIXERCONTROLA pamxctrl
;
1125 } MIXERLINECONTROLSA
, *LPMIXERLINECONTROLSA
;
1132 DWORD dwControlType
;
1136 LPMIXERCONTROLW pamxctrl
;
1137 } MIXERLINECONTROLSW
, *LPMIXERLINECONTROLSW
;
1139 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1140 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1148 DWORD cMultipleItems
;
1152 } MIXERCONTROLDETAILS
,*LPMIXERCONTROLDETAILS
;
1157 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1158 } MIXERCONTROLDETAILS_LISTTEXTA
,*LPMIXERCONTROLDETAILS_LISTTEXTA
;
1163 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1164 } MIXERCONTROLDETAILS_LISTTEXTW
,*LPMIXERCONTROLDETAILS_LISTTEXTW
;
1166 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1167 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1169 /* MIXER_GETCONTROLDETAILSF_VALUE */
1172 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1176 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1180 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1182 /* bits passed to mixerGetLineInfo.fdwInfo */
1183 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1184 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1185 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1186 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1187 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1188 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1190 /* bitmask passed to mixerGetLineControl */
1191 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1192 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1193 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1194 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1196 /* bitmask passed to mixerGetControlDetails */
1197 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1198 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1199 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1201 /* bitmask passed to mixerSetControlDetails */
1202 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1203 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1204 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1206 UINT WINAPI
mixerGetNumDevs(void);
1207 UINT WINAPI
mixerOpen(LPHMIXER
,UINT
,DWORD
,DWORD
,DWORD
);
1208 UINT WINAPI
mixerClose(HMIXER
);
1209 UINT WINAPI
mixerMessage(HMIXER
,UINT
,DWORD
,DWORD
);
1210 UINT WINAPI
mixerGetDevCapsA(UINT
,LPMIXERCAPSA
,UINT
);
1211 UINT WINAPI
mixerGetDevCapsW(UINT
,LPMIXERCAPSW
,UINT
);
1212 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1213 UINT WINAPI
mixerGetLineInfoA(HMIXEROBJ
,LPMIXERLINEA
,DWORD
);
1214 UINT WINAPI
mixerGetLineInfoW(HMIXEROBJ
,LPMIXERLINEW
,DWORD
);
1215 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1216 UINT WINAPI
mixerGetID(HMIXEROBJ
,LPUINT
,DWORD
);
1217 UINT WINAPI
mixerGetLineControlsA(HMIXEROBJ
,LPMIXERLINECONTROLSA
,DWORD
);
1218 UINT WINAPI
mixerGetLineControlsW(HMIXEROBJ
,LPMIXERLINECONTROLSW
,DWORD
);
1219 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1220 UINT WINAPI
mixerGetControlDetailsA(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1221 UINT WINAPI
mixerGetControlDetailsW(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1222 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1223 UINT WINAPI
mixerSetControlDetails(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1225 #define MMIOERR_BASE 256
1226 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1227 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1228 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1229 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1230 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1231 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1232 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1233 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1234 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1235 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1237 #define CFSEPCHAR '+' /* compound file name separator char. */
1239 typedef DWORD FOURCC
; /* a four character code */
1240 typedef LRESULT
CALLBACK (*LPMMIOPROC
) (LPSTR lpmmioinfo
, UINT uMessage
,
1241 LPARAM lParam1
, LPARAM lParam2
);
1249 /* fields maintained by MMIO functions during buffered I/O */
1256 /* fields maintained by I/O procedure */
1259 /* other fields maintained by MMIO */
1263 } MMIOINFO
, *PMMIOINFO
, *LPMMIOINFO
;
1266 typedef struct _MMCKINFO
1268 FOURCC ckid
; /* chunk ID */
1269 DWORD cksize
; /* chunk size */
1270 FOURCC fccType
; /* form type or list type */
1271 DWORD dwDataOffset
; /* offset of data portion of chunk */
1272 DWORD dwFlags
; /* flags used by MMIO functions */
1273 } MMCKINFO
, *LPMMCKINFO
;
1275 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1276 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1278 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1279 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1280 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1281 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1282 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1283 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1285 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1287 #define MMIO_READ 0x00000000 /* open file for reading only */
1288 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1289 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1291 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1292 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1293 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1294 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1295 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1297 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1298 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1299 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1300 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1301 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1302 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1303 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1304 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1305 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1306 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1307 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1308 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1314 #define MMIOM_READ MMIO_READ /* read */
1315 #define MMIOM_WRITE MMIO_WRITE /* write */
1316 #define MMIOM_SEEK 2 /* seek to a new position in file */
1317 #define MMIOM_OPEN 3 /* open file */
1318 #define MMIOM_CLOSE 4 /* close file */
1319 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1321 #define MMIOM_RENAME 6 /* rename specified file */
1323 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1325 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1326 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1328 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1329 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1331 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1333 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1334 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1335 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1337 LPMMIOPROC WINAPI
mmioInstallIOProcA(FOURCC
,LPMMIOPROC
,DWORD
);
1338 LPMMIOPROC WINAPI
mmioInstallIOProcW(FOURCC
,LPMMIOPROC
,DWORD
);
1339 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1341 FOURCC WINAPI
mmioStringToFOURCCA(LPCSTR
,UINT
);
1342 FOURCC WINAPI
mmioStringToFOURCCW(LPCWSTR
,UINT
);
1343 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1344 HMMIO WINAPI
mmioOpenA(LPSTR
,MMIOINFO
*,DWORD
);
1345 HMMIO WINAPI
mmioOpenW(LPWSTR
,MMIOINFO
*,DWORD
);
1346 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1348 UINT WINAPI
mmioRenameA(LPCSTR szFileName
, LPCSTR szNewFileName
,
1349 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1350 UINT WINAPI
mmioRenameW(LPCWSTR szFileName
, LPCWSTR szNewFileName
,
1351 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1352 #define mmioRename WINELIB_NAME_AW(mmioRename)
1354 MMRESULT WINAPI
mmioClose(HMMIO
,UINT
);
1355 LONG WINAPI
mmioRead(HMMIO
,HPSTR
,LONG
);
1356 LONG WINAPI
mmioWrite(HMMIO
,HPCSTR
,LONG
);
1357 LONG WINAPI
mmioSeek(HMMIO
,LONG
,INT
);
1358 MMRESULT WINAPI
mmioGetInfo(HMMIO
,MMIOINFO
*,UINT
);
1359 MMRESULT WINAPI
mmioSetInfo(HMMIO
,const MMIOINFO
*,UINT
);
1360 UINT WINAPI
mmioSetBuffer(HMMIO
,LPSTR
,LONG
,UINT
);
1361 UINT WINAPI
mmioFlush(HMMIO
,UINT
);
1362 UINT WINAPI
mmioAdvance(HMMIO
,MMIOINFO
*,UINT
);
1363 LONG WINAPI
mmioSendMessage(HMMIO
,UINT
,LPARAM
,LPARAM
);
1364 UINT WINAPI
mmioDescend(HMMIO
,MMCKINFO
*,const MMCKINFO
*,UINT
);
1365 UINT WINAPI
mmioAscend(HMMIO
,MMCKINFO
*,UINT
);
1366 UINT WINAPI
mmioCreateChunk(HMMIO
,MMCKINFO
*,UINT
);
1368 typedef UINT
CALLBACK (*YIELDPROC
)(MCIDEVICEID
,DWORD
);
1370 DWORD WINAPI
mciSendCommandA(UINT
,UINT
,DWORD
,DWORD
);
1371 DWORD WINAPI
mciSendCommandW(UINT
,UINT
,DWORD
,DWORD
);
1372 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1373 DWORD WINAPI
mciSendStringA(LPCSTR
,LPSTR
,UINT
,HWND
);
1374 DWORD WINAPI
mciSendStringW(LPCWSTR
,LPSTR
,UINT
,HWND
);
1375 #define mciSendString WINELIB_NAME_AW(mciSendString)
1376 UINT WINAPI
mciGetDeviceIDA(LPCSTR
);
1377 UINT WINAPI
mciGetDeviceIDW(LPCWSTR
);
1378 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1379 BOOL WINAPI
mciGetErrorStringA(DWORD
,LPSTR
,UINT
);
1380 BOOL WINAPI
mciGetErrorStringW(DWORD
,LPWSTR
,UINT
);
1381 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1382 BOOL WINAPI
mciSetYieldProc(UINT
,YIELDPROC
,DWORD
);
1383 HTASK WINAPI
mciGetCreatorTask(UINT
);
1384 YIELDPROC WINAPI
mciGetYieldProc(UINT
,DWORD
*);
1386 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1387 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1388 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1389 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1390 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1391 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1392 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1393 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1394 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1395 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1396 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1397 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1398 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1399 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1400 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1401 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1402 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1403 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1404 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1405 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1406 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1407 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1408 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1409 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1410 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1411 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1412 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1413 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1414 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1415 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1416 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1417 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1418 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1419 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1420 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1421 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1422 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1423 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1424 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1425 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1426 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1427 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1428 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1429 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1430 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1431 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1432 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1433 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1434 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1435 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1436 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1437 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1439 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1440 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1441 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1442 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1443 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1444 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1445 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1446 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1447 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1448 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1450 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1451 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1452 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1453 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1454 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1455 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1456 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1457 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1459 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1460 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1461 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1462 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1464 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1466 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1468 #define MCI_OPEN_DRIVER 0x0801
1469 #define MCI_CLOSE_DRIVER 0x0802
1470 #define MCI_OPEN 0x0803
1471 #define MCI_CLOSE 0x0804
1472 #define MCI_ESCAPE 0x0805
1473 #define MCI_PLAY 0x0806
1474 #define MCI_SEEK 0x0807
1475 #define MCI_STOP 0x0808
1476 #define MCI_PAUSE 0x0809
1477 #define MCI_INFO 0x080A
1478 #define MCI_GETDEVCAPS 0x080B
1479 #define MCI_SPIN 0x080C
1480 #define MCI_SET 0x080D
1481 #define MCI_STEP 0x080E
1482 #define MCI_RECORD 0x080F
1483 #define MCI_SYSINFO 0x0810
1484 #define MCI_BREAK 0x0811
1485 #define MCI_SOUND 0x0812
1486 #define MCI_SAVE 0x0813
1487 #define MCI_STATUS 0x0814
1488 #define MCI_CUE 0x0830
1489 #define MCI_REALIZE 0x0840
1490 #define MCI_WINDOW 0x0841
1491 #define MCI_PUT 0x0842
1492 #define MCI_WHERE 0x0843
1493 #define MCI_FREEZE 0x0844
1494 #define MCI_UNFREEZE 0x0845
1495 #define MCI_LOAD 0x0850
1496 #define MCI_CUT 0x0851
1497 #define MCI_COPY 0x0852
1498 #define MCI_PASTE 0x0853
1499 #define MCI_UPDATE 0x0854
1500 #define MCI_RESUME 0x0855
1501 #define MCI_DELETE 0x0856
1503 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1505 #define MCI_ALL_DEVICE_ID 0xFFFF
1507 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1508 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1509 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1510 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1511 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1512 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1513 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1514 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1515 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1516 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1517 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1519 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1520 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1522 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1523 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1524 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1525 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1526 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1527 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1528 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1530 #define MCI_FORMAT_MILLISECONDS 0
1531 #define MCI_FORMAT_HMS 1
1532 #define MCI_FORMAT_MSF 2
1533 #define MCI_FORMAT_FRAMES 3
1534 #define MCI_FORMAT_SMPTE_24 4
1535 #define MCI_FORMAT_SMPTE_25 5
1536 #define MCI_FORMAT_SMPTE_30 6
1537 #define MCI_FORMAT_SMPTE_30DROP 7
1538 #define MCI_FORMAT_BYTES 8
1539 #define MCI_FORMAT_SAMPLES 9
1540 #define MCI_FORMAT_TMSF 10
1542 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1543 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1544 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1546 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1548 (((DWORD)(BYTE)(f))<<16)))
1550 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1551 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1552 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1553 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1555 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1557 (((DWORD)(BYTE)(s) | \
1558 ((WORD)(f)<<8))<<16)))
1560 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1561 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1562 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1564 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1566 (((DWORD)(BYTE)(s))<<16)))
1568 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1569 #define MCI_NOTIFY_SUPERSEDED 0x0002
1570 #define MCI_NOTIFY_ABORTED 0x0004
1571 #define MCI_NOTIFY_FAILURE 0x0008
1573 #define MCI_NOTIFY 0x00000001L
1574 #define MCI_WAIT 0x00000002L
1575 #define MCI_FROM 0x00000004L
1576 #define MCI_TO 0x00000008L
1577 #define MCI_TRACK 0x00000010L
1579 #define MCI_OPEN_SHAREABLE 0x00000100L
1580 #define MCI_OPEN_ELEMENT 0x00000200L
1581 #define MCI_OPEN_ALIAS 0x00000400L
1582 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1583 #define MCI_OPEN_TYPE_ID 0x00001000L
1584 #define MCI_OPEN_TYPE 0x00002000L
1586 #define MCI_SEEK_TO_START 0x00000100L
1587 #define MCI_SEEK_TO_END 0x00000200L
1589 #define MCI_STATUS_ITEM 0x00000100L
1590 #define MCI_STATUS_START 0x00000200L
1592 #define MCI_STATUS_LENGTH 0x00000001L
1593 #define MCI_STATUS_POSITION 0x00000002L
1594 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1595 #define MCI_STATUS_MODE 0x00000004L
1596 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1597 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1598 #define MCI_STATUS_READY 0x00000007L
1599 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1601 #define MCI_INFO_PRODUCT 0x00000100L
1602 #define MCI_INFO_FILE 0x00000200L
1603 #define MCI_INFO_MEDIA_UPC 0x00000400L
1604 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1605 #define MCI_INFO_NAME 0x00001000L
1606 #define MCI_INFO_COPYRIGHT 0x00002000L
1608 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1610 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1611 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1612 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1613 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1614 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1615 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1616 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1617 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1618 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1620 #define MCI_SYSINFO_QUANTITY 0x00000100L
1621 #define MCI_SYSINFO_OPEN 0x00000200L
1622 #define MCI_SYSINFO_NAME 0x00000400L
1623 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1625 #define MCI_SET_DOOR_OPEN 0x00000100L
1626 #define MCI_SET_DOOR_CLOSED 0x00000200L
1627 #define MCI_SET_TIME_FORMAT 0x00000400L
1628 #define MCI_SET_AUDIO 0x00000800L
1629 #define MCI_SET_VIDEO 0x00001000L
1630 #define MCI_SET_ON 0x00002000L
1631 #define MCI_SET_OFF 0x00004000L
1633 #define MCI_SET_AUDIO_ALL 0x00000000L
1634 #define MCI_SET_AUDIO_LEFT 0x00000001L
1635 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1637 #define MCI_BREAK_KEY 0x00000100L
1638 #define MCI_BREAK_HWND 0x00000200L
1639 #define MCI_BREAK_OFF 0x00000400L
1641 #define MCI_RECORD_INSERT 0x00000100L
1642 #define MCI_RECORD_OVERWRITE 0x00000200L
1644 #define MCI_SOUND_NAME 0x00000100L
1646 #define MCI_SAVE_FILE 0x00000100L
1648 #define MCI_LOAD_FILE 0x00000100L
1652 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
1656 MCIDEVICEID wDeviceID
;
1657 LPSTR lpstrDeviceType
;
1658 LPSTR lpstrElementName
;
1660 } MCI_OPEN_PARMSA
, *LPMCI_OPEN_PARMSA
;
1664 MCIDEVICEID wDeviceID
;
1665 LPWSTR lpstrDeviceType
;
1666 LPWSTR lpstrElementName
;
1668 } MCI_OPEN_PARMSW
, *LPMCI_OPEN_PARMSW
;
1670 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
1671 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
1677 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
1682 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
1689 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
1695 } MCI_INFO_PARMSA
, *LPMCI_INFO_PARMSA
;
1701 } MCI_INFO_PARMSW
, *LPMCI_INFO_PARMSW
;
1703 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
1704 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
1710 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
1718 } MCI_SYSINFO_PARMSA
, *LPMCI_SYSINFO_PARMSA
;
1726 } MCI_SYSINFO_PARMSW
, *LPMCI_SYSINFO_PARMSW
;
1728 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
1729 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
1735 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
1741 } MCI_BREAK_PARMS
, *LPMCI_BREAK_PARMS
;
1746 LPCSTR lpstrSoundName
;
1747 } MCI_SOUND_PARMS
, *LPMCI_SOUND_PARMS
;
1752 } MCI_SAVE_PARMS
, *LPMCI_SAVE_PARMS
;
1757 } MCI_LOAD_PARMSA
, *LPMCI_LOAD_PARMSA
;
1762 } MCI_LOAD_PARMSW
, *LPMCI_LOAD_PARMSW
;
1764 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
1765 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
1771 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
1773 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
1775 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
1776 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
1778 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
1780 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
1781 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
1782 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
1784 #define MCI_VD_FORMAT_TRACK 0x4001
1786 #define MCI_VD_PLAY_REVERSE 0x00010000L
1787 #define MCI_VD_PLAY_FAST 0x00020000L
1788 #define MCI_VD_PLAY_SPEED 0x00040000L
1789 #define MCI_VD_PLAY_SCAN 0x00080000L
1790 #define MCI_VD_PLAY_SLOW 0x00100000L
1792 #define MCI_VD_SEEK_REVERSE 0x00010000L
1794 #define MCI_VD_STATUS_SPEED 0x00004002L
1795 #define MCI_VD_STATUS_FORWARD 0x00004003L
1796 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
1797 #define MCI_VD_STATUS_SIDE 0x00004005L
1798 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
1800 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
1801 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
1803 #define MCI_VD_SPIN_UP 0x00010000L
1804 #define MCI_VD_SPIN_DOWN 0x00020000L
1806 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
1807 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
1808 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
1809 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
1811 #define MCI_VD_STEP_FRAMES 0x00010000L
1812 #define MCI_VD_STEP_REVERSE 0x00020000L
1814 #define MCI_VD_ESCAPE_STRING 0x00000100L
1821 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
1826 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
1830 LPCSTR lpstrCommand
;
1831 } MCI_VD_ESCAPE_PARMSA
, *LPMCI_VD_ESCAPE_PARMSA
;
1835 LPCWSTR lpstrCommand
;
1836 } MCI_VD_ESCAPE_PARMSW
, *LPMCI_VD_ESCAPE_PARMSW
;
1838 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
1839 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
1841 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
1843 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
1844 #define MCI_WAVE_SET_CHANNELS 0x00020000L
1845 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
1846 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
1847 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
1848 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
1850 #define MCI_WAVE_INPUT 0x00400000L
1851 #define MCI_WAVE_OUTPUT 0x00800000L
1853 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
1854 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
1855 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
1856 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
1857 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
1858 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
1859 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
1861 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
1862 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
1864 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
1865 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
1869 MCIDEVICEID wDeviceID
;
1870 LPCSTR lpstrDeviceType
;
1871 LPCSTR lpstrElementName
;
1873 DWORD dwBufferSeconds
;
1874 } MCI_WAVE_OPEN_PARMSA
, *LPMCI_WAVE_OPEN_PARMSA
;
1878 MCIDEVICEID wDeviceID
;
1879 LPCWSTR lpstrDeviceType
;
1880 LPCWSTR lpstrElementName
;
1882 DWORD dwBufferSeconds
;
1883 } MCI_WAVE_OPEN_PARMSW
, *LPMCI_WAVE_OPEN_PARMSW
;
1885 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
1886 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
1892 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
1902 DWORD nSamplesPerSec
;
1903 DWORD nAvgBytesPerSec
;
1905 UINT wBitsPerSample
;
1906 } MCI_WAVE_SET_PARMS
, * LPMCI_WAVE_SET_PARMS
;
1909 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
1910 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
1911 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
1912 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
1913 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
1915 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
1916 #define MCI_SEQ_FILE 0x4002
1917 #define MCI_SEQ_MIDI 0x4003
1918 #define MCI_SEQ_SMPTE 0x4004
1919 #define MCI_SEQ_NONE 65533
1921 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
1922 #define MCI_SEQ_STATUS_PORT 0x00004003L
1923 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
1924 #define MCI_SEQ_STATUS_MASTER 0x00004008L
1925 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
1926 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
1928 #define MCI_SEQ_SET_TEMPO 0x00010000L
1929 #define MCI_SEQ_SET_PORT 0x00020000L
1930 #define MCI_SEQ_SET_SLAVE 0x00040000L
1931 #define MCI_SEQ_SET_MASTER 0x00080000L
1932 #define MCI_SEQ_SET_OFFSET 0x01000000L
1943 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
1945 #define MCI_ANIM_OPEN_WS 0x00010000L
1946 #define MCI_ANIM_OPEN_PARENT 0x00020000L
1947 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
1949 #define MCI_ANIM_PLAY_SPEED 0x00010000L
1950 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
1951 #define MCI_ANIM_PLAY_FAST 0x00040000L
1952 #define MCI_ANIM_PLAY_SLOW 0x00080000L
1953 #define MCI_ANIM_PLAY_SCAN 0x00100000L
1955 #define MCI_ANIM_STEP_REVERSE 0x00010000L
1956 #define MCI_ANIM_STEP_FRAMES 0x00020000L
1958 #define MCI_ANIM_STATUS_SPEED 0x00004001L
1959 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
1960 #define MCI_ANIM_STATUS_HWND 0x00004003L
1961 #define MCI_ANIM_STATUS_HPAL 0x00004004L
1962 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
1964 #define MCI_ANIM_INFO_TEXT 0x00010000L
1966 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
1967 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
1968 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
1969 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
1970 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
1971 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
1972 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
1974 #define MCI_ANIM_REALIZE_NORM 0x00010000L
1975 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
1977 #define MCI_ANIM_WINDOW_HWND 0x00010000L
1978 #define MCI_ANIM_WINDOW_STATE 0x00040000L
1979 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
1980 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
1981 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
1983 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
1985 #define MCI_ANIM_RECT 0x00010000L
1986 #define MCI_ANIM_PUT_SOURCE 0x00020000L
1987 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
1989 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
1990 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
1992 #define MCI_ANIM_UPDATE_HDC 0x00020000L
1996 MCIDEVICEID wDeviceID
;
1997 LPCSTR lpstrDeviceType
;
1998 LPCSTR lpstrElementName
;
2002 } MCI_ANIM_OPEN_PARMSA
, *LPMCI_ANIM_OPEN_PARMSA
;
2006 MCIDEVICEID wDeviceID
;
2007 LPCWSTR lpstrDeviceType
;
2008 LPCWSTR lpstrElementName
;
2012 } MCI_ANIM_OPEN_PARMSW
, *LPMCI_ANIM_OPEN_PARMSW
;
2014 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2015 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2022 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2027 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2034 } MCI_ANIM_WINDOW_PARMSA
, *LPMCI_ANIM_WINDOW_PARMSA
;
2041 } MCI_ANIM_WINDOW_PARMSW
, *LPMCI_ANIM_WINDOW_PARMSW
;
2043 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2044 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2048 #ifdef MCI_USE_OFFEXT
2051 #else /* ifdef MCI_USE_OFFEXT */
2053 #endif /* ifdef MCI_USE_OFFEXT */
2054 } MCI_ANIM_RECT_PARMS
, *LPMCI_ANIM_RECT_PARMS
;
2061 } MCI_ANIM_UPDATE_PARMS
, *LPMCI_ANIM_UPDATE_PARMS
;
2064 #define MCI_OVLY_OPEN_WS 0x00010000L
2065 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2067 #define MCI_OVLY_STATUS_HWND 0x00004001L
2068 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2070 #define MCI_OVLY_INFO_TEXT 0x00010000L
2072 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2073 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2074 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2076 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2077 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2078 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2079 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2080 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2082 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2084 #define MCI_OVLY_RECT 0x00010000L
2085 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2086 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2087 #define MCI_OVLY_PUT_FRAME 0x00080000L
2088 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2090 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2091 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2092 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2093 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2097 MCIDEVICEID wDeviceID
;
2098 LPCSTR lpstrDeviceType
;
2099 LPCSTR lpstrElementName
;
2103 } MCI_OVLY_OPEN_PARMSA
, *LPMCI_OVLY_OPEN_PARMSA
;
2107 MCIDEVICEID wDeviceID
;
2108 LPCWSTR lpstrDeviceType
;
2109 LPCWSTR lpstrElementName
;
2113 } MCI_OVLY_OPEN_PARMSW
, *LPMCI_OVLY_OPEN_PARMSW
;
2115 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2116 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2123 } MCI_OVLY_WINDOW_PARMSA
, *LPMCI_OVLY_WINDOW_PARMSA
;
2130 } MCI_OVLY_WINDOW_PARMSW
, *LPMCI_OVLY_WINDOW_PARMSW
;
2132 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2133 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2137 #ifdef MCI_USE_OFFEXT
2140 #else /* ifdef MCI_USE_OFFEXT */
2142 #endif /* ifdef MCI_USE_OFFEXT */
2143 } MCI_OVLY_RECT_PARMS
, *LPMCI_OVLY_RECT_PARMS
;
2150 } MCI_OVLY_SAVE_PARMSA
, *LPMCI_OVLY_SAVE_PARMSA
;
2156 } MCI_OVLY_SAVE_PARMSW
, *LPMCI_OVLY_SAVE_PARMSW
;
2158 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2159 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2165 } MCI_OVLY_LOAD_PARMSA
, *LPMCI_OVLY_LOAD_PARMSA
;
2171 } MCI_OVLY_LOAD_PARMSW
, *LPMCI_OVLY_LOAD_PARMSW
;
2173 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2174 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2176 #include "poppack.h"
2182 #endif /* __WINE_MMSYSTEM_H */