Applied the recent mainline PCem commits (and fixed the Pentium machines);
Ported the Roland MT-32 emulation (using MUNT) from bit's MT32 emulation branch of PCem; Sanitized the OpenAL give buffer code in openal.c a bit; NVR path is now specifiable in the Settings dialog; Added Logitech 3-button serial mouse per protocol description by waltje; The RTL8029AS and the BT-958D now actually use the PCI IRQ routing; Fixed BT-958D PCI device initialization on the bus; PCI IRQ routing now respects the edge/level setting set on ports 4D0/4D1.
This commit is contained in:
35
src/SOUND/midi.h
Normal file
35
src/SOUND/midi.h
Normal file
@@ -0,0 +1,35 @@
|
||||
extern int midi_device_current;
|
||||
|
||||
int midi_device_available(int card);
|
||||
char *midi_device_getname(int card);
|
||||
struct device_t *midi_device_getdevice(int card);
|
||||
int midi_device_has_config(int card);
|
||||
char *midi_device_get_internal_name(int card);
|
||||
int midi_device_get_from_internal_name(char *s);
|
||||
void midi_device_init();
|
||||
|
||||
typedef struct midi_device_t
|
||||
{
|
||||
void (*play_sysex)(uint8_t *sysex, unsigned int len);
|
||||
void (*play_msg)(uint8_t *msg);
|
||||
void (*poll)();
|
||||
int (*write)(uint8_t val);
|
||||
} midi_device_t;
|
||||
|
||||
void midi_init(midi_device_t* device);
|
||||
void midi_close();
|
||||
void midi_write(uint8_t val);
|
||||
void midi_poll();
|
||||
|
||||
#if 0
|
||||
#ifdef _WIN32
|
||||
#define SYSTEM_MIDI_NAME "Windows MIDI"
|
||||
#define SYSTEM_MIDI_INTERNAL_NAME "windows_midi"
|
||||
#else
|
||||
#define SYSTEM_MIDI_NAME "System MIDI"
|
||||
#define SYSTEM_MIDI_INTERNAL_NAME "system_midi"
|
||||
#endif
|
||||
#else
|
||||
#define SYSTEM_MIDI_NAME "System MIDI"
|
||||
#define SYSTEM_MIDI_INTERNAL_NAME "system_midi"
|
||||
#endif
|
||||
Reference in New Issue
Block a user