sndcard.h
00001 
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  #define HAVE_OSS_SUPPORT
00035 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
00036  #include <machine/soundcard.h>
00037  #define HAVE_OSS_SUPPORT
00038 #else
00039  #undef HAVE_OSS_SUPPORT
00040 #endif
00041 
00042 #ifdef HAVE_OSS_SUPPORT
00043 
00044 #ifndef HZ
00045 #define HZ 100
00046 #endif
00047 
00048 #ifndef MIDI_TYPE_MPU401
00049 #define MIDI_TYPE_MPU401 0x401
00050 #endif
00051 
00052 #else
00053  
00054 #define MIDI_NOTEON 0x80
00055 #define MIDI_NOTEOFF 0x90
00056 #define MIDI_KEY_PRESSURE 0xA0
00057 #define MIDI_CTL_CHANGE 0xB0
00058 #define MIDI_PGM_CHANGE 0xC0
00059 #define MIDI_CHN_PRESSURE 0xD0
00060 #define MIDI_PITCH_BEND 0xE0
00061 #define MIDI_SYSTEM_PREFIX 0xF0
00062 #define CTL_MAIN_VOLUME 7
00063 
00064 #define SEQ_DEFINEBUF(a)
00065 #define SEQ_USE_EXTBUF()
00066 #define SEQ_MIDIOUT(a,b) {}
00067 #define SEQ_START_NOTE(a,b,c,d) {}
00068 #define SEQ_STOP_NOTE(a,b,c,d) {}
00069 #define SEQ_SET_PATCH(a,b,c) {}
00070 #define SEQ_CONTROL(a,b,c,d) {}
00071 #define SEQ_BENDER(a,b,c) {}
00072 #define SEQ_CHN_PRESSURE(a,b,c) {}
00073 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
00074 #define SEQ_DUMPBUF()
00075 #define SEQ_WAIT_TIME(a)
00076 #define SEQ_START_TIMER()
00077 #define SEQ_STOP_TIMER()
00078 #define SEQ_CONTINUE_TIMER()
00079 
00080 
00081 #endif
00082 
00083 
00084 
00085 #endif
 
This file is part of the documentation for libkmid Library Version 3.2.0.