32 #ifdef HAVE_SYS_SOUNDCARD_H
33 #include <sys/soundcard.h>
34 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
35 #include <machine/soundcard.h>
39 #if defined(SNDCTL_SEQ_NRSYNTHS) && defined(CTL_MAIN_VOLUME)
40 #define HAVE_OSS_SUPPORT
42 #undef HAVE_OSS_SUPPORT
45 #ifdef HAVE_OSS_SUPPORT
51 #ifndef MIDI_TYPE_MPU401
52 #define MIDI_TYPE_MPU401 0x401
57 #define MIDI_NOTEON 0x80
58 #define MIDI_NOTEOFF 0x90
59 #define MIDI_KEY_PRESSURE 0xA0
60 #define MIDI_CTL_CHANGE 0xB0
61 #define MIDI_PGM_CHANGE 0xC0
62 #define MIDI_CHN_PRESSURE 0xD0
63 #define MIDI_PITCH_BEND 0xE0
64 #define MIDI_SYSTEM_PREFIX 0xF0
65 #define CTL_MAIN_VOLUME 7
66 #define CTL_EXT_EFF_DEPTH 0x50
67 #define CTL_CHORUS_DEPTH 0x5D
69 #define SEQ_DEFINEBUF(a)
70 #define SEQ_USE_EXTBUF()
71 #define SEQ_MIDIOUT(a,b) {}
72 #define SEQ_START_NOTE(a,b,c,d) {}
73 #define SEQ_STOP_NOTE(a,b,c,d) {}
74 #define SEQ_SET_PATCH(a,b,c) {}
75 #define SEQ_CONTROL(a,b,c,d) {}
76 #define SEQ_BENDER(a,b,c) {}
77 #define SEQ_CHN_PRESSURE(a,b,c) {}
78 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
80 #define SEQ_WAIT_TIME(a)
81 #define SEQ_START_TIMER()
82 #define SEQ_STOP_TIMER()
83 #define SEQ_CONTINUE_TIMER()