1 /*****************************************************************************
2 * Copyright 1998, Luiz Otavio L. Zorzella
5 * Purpose: multimedia declarations
7 *****************************************************************************
9 #ifndef __WINE_MULTIMEDIA_H
10 #define __WINE_MULTIMEDIA_H
14 #define MAX_MIDIINDRV (16)
15 /* For now I'm making 16 the maximum number of midi devices one can
16 * have. This should be more than enough for everybody. But as a purist,
17 * I intend to make it unbounded in the future, as soon as I figure
18 * a good way to do so.
20 #define MAX_MIDIOUTDRV (16)
22 #if defined(HAVE_SYS_SOUNDCARD_H)
23 # include <sys/soundcard.h>
24 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
25 # include <machine/soundcard.h>
26 #elif defined(HAVE_SOUNDCARD_H)
27 # include <soundcard.h>
30 #include <sys/errno.h>
33 #define MIDI_SEQ "/dev/sequencer"
35 #define MIDI_DEV "/dev/midi"
39 #define IOCTL(a,b,c) ioctl(a,b,&c)
41 #define IOCTL(a,b,c) (c = ioctl(a,b,c))
44 struct WINE_MCIDRIVER
{
46 DRIVERPROC16 driverProc
;
47 MCI_OPEN_DRIVER_PARMS modp
;
52 /* function prototypes */
53 extern BOOL
MULTIMEDIA_Init(void);
55 extern int MCI_DevIDToIndex(UINT16 wDevID
);
56 extern UINT16
MCI_FirstDevID(void);
57 extern UINT16
MCI_NextDevID(UINT16 wDevID
);
58 extern BOOL
MCI_DevIDValid(UINT16 wDevID
);
60 extern int MCI_MapMsg16To32A(WORD uDevType
, WORD wMsg
, DWORD
* lParam
);
61 extern int MCI_UnMapMsg16To32A(WORD uDevTyp
, WORD wMsg
, DWORD lParam
);
63 typedef LONG (*MCIPROC16
)(DWORD
, HDRVR16
, WORD
, DWORD
, DWORD
);
64 typedef LONG (*MCIPROC
)(DWORD
, HDRVR16
, DWORD
, DWORD
, DWORD
);
66 extern MCIPROC
MCI_GetProc(UINT16 uDevType
);
67 extern WORD
MCI_GetDevType(LPCSTR str
);
68 extern DWORD
MCI_WriteString(LPSTR lpDstStr
, DWORD dstSize
, LPCSTR lpSrcStr
);
69 extern const char* MCI_CommandToString(UINT16 wMsg
);
72 extern DWORD
MCI_SendCommand(UINT wDevID
, UINT16 wMsg
, DWORD dwParam1
, DWORD dwParam2
);
73 extern DWORD
MCI_SendCommandAsync(UINT wDevID
, UINT wMsg
, DWORD dwParam1
, DWORD dwParam2
, UINT size
);
75 LONG
MCIWAVE_DriverProc(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
76 DWORD dwParam1
, DWORD dwParam2
);
77 LONG
MCIMIDI_DriverProc(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
78 DWORD dwParam1
, DWORD dwParam2
);
79 LONG
MCICDAUDIO_DriverProc(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
80 DWORD dwParam1
, DWORD dwParam2
);
81 LONG
MCIANIM_DriverProc(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
82 DWORD dwParam1
, DWORD dwParam2
);
83 LONG
MCIAVI_DriverProc32(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
84 DWORD dwParam1
, DWORD dwParam2
);
86 #endif /* __WINE_MULTIMEDIA_H */