sndcard.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _SNDCARD_H
00026 #define _SNDCARD_H
00027
00028 #ifdef HAVE_CONFIG_H
00029 #include <config.h>
00030 #endif
00031
00032 #ifdef HAVE_SYS_SOUNDCARD_H
00033 #include <sys/soundcard.h>
00034 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
00035 #include <machine/soundcard.h>
00036 #endif
00037
00038
00039 #if defined(SNDCTL_SEQ_NRSYNTHS) && defined(CTL_MAIN_VOLUME)
00040 #define HAVE_OSS_SUPPORT
00041 #else
00042 #undef HAVE_OSS_SUPPORT
00043 #endif
00044
00045 #ifdef HAVE_OSS_SUPPORT
00046
00047 #ifndef HZ
00048 #define HZ 100
00049 #endif
00050
00051 #ifndef MIDI_TYPE_MPU401
00052 #define MIDI_TYPE_MPU401 0x401
00053 #endif
00054
00055 #else
00056
00057 #define MIDI_NOTEON 0x80
00058 #define MIDI_NOTEOFF 0x90
00059 #define MIDI_KEY_PRESSURE 0xA0
00060 #define MIDI_CTL_CHANGE 0xB0
00061 #define MIDI_PGM_CHANGE 0xC0
00062 #define MIDI_CHN_PRESSURE 0xD0
00063 #define MIDI_PITCH_BEND 0xE0
00064 #define MIDI_SYSTEM_PREFIX 0xF0
00065 #define CTL_MAIN_VOLUME 7
00066
00067 #define SEQ_DEFINEBUF(a)
00068 #define SEQ_USE_EXTBUF()
00069 #define SEQ_MIDIOUT(a,b) {}
00070 #define SEQ_START_NOTE(a,b,c,d) {}
00071 #define SEQ_STOP_NOTE(a,b,c,d) {}
00072 #define SEQ_SET_PATCH(a,b,c) {}
00073 #define SEQ_CONTROL(a,b,c,d) {}
00074 #define SEQ_BENDER(a,b,c) {}
00075 #define SEQ_CHN_PRESSURE(a,b,c) {}
00076 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
00077 #define SEQ_DUMPBUF()
00078 #define SEQ_WAIT_TIME(a)
00079 #define SEQ_START_TIMER()
00080 #define SEQ_STOP_TIMER()
00081 #define SEQ_CONTINUE_TIMER()
00082
00083
00084 #endif
00085
00086
00087
00088 #endif
|