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