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)
21 #define MAX_MCIMIDIDRV (1)
23 #ifdef HAVE_SYS_SOUNDCARD_H
24 # include <sys/soundcard.h>
26 #ifdef HAVE_MACHINE_SOUNDCARD_H
27 # include <machine/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) )
50 LPMIDIOPENDESC midiDesc;
55 unsigned char incoming[3];
56 unsigned char incPrev;
68 LPMIDIOPENDESC midiDesc;
73 void* lpExtra; /* according to port type (MIDI, FM...), extra data when needed */
78 int nUseCount; /* Incremented for each shared open */
79 BOOL16 fShareable; /* TRUE if first open was shareable */
80 WORD wNotifyDeviceID; /* MCI device ID with a pending notification */
81 HANDLE16 hCallback; /* Callback handle for pending notification */
82 HMMIO16 hFile; /* mmio file handle open as Element */
88 MCI_OPEN_PARMS16 openParms;
89 /* MIDIHDR MidiHdr; */
94 /* function prototypes */
95 extern BOOL32 MULTIMEDIA_Init( void );
97 #endif /* __WINE_MULTIMEDIA_H */