sndcard.h
00001 /* sndcard.h - include the OSS' soundcard.h file 00002 This file is part of LibKMid 0.9.5 00003 Copyright (C) 1997,98,99,2000 Antonio Larrosa Jimenez 00004 LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 00021 Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org> 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 /* Check for OSS MIDI API */ 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 #define CTL_EXT_EFF_DEPTH 0x50 00067 #define CTL_CHORUS_DEPTH 0x5D 00068 00069 #define SEQ_DEFINEBUF(a) 00070 #define SEQ_USE_EXTBUF() 00071 #define SEQ_MIDIOUT(a,b) {} 00072 #define SEQ_START_NOTE(a,b,c,d) {} 00073 #define SEQ_STOP_NOTE(a,b,c,d) {} 00074 #define SEQ_SET_PATCH(a,b,c) {} 00075 #define SEQ_CONTROL(a,b,c,d) {} 00076 #define SEQ_BENDER(a,b,c) {} 00077 #define SEQ_CHN_PRESSURE(a,b,c) {} 00078 #define SEQ_KEY_PRESSURE(a,b,c,d) {} 00079 #define SEQ_DUMPBUF() 00080 #define SEQ_WAIT_TIME(a) 00081 #define SEQ_START_TIMER() 00082 #define SEQ_STOP_TIMER() 00083 #define SEQ_CONTINUE_TIMER() 00084 00085 00086 #endif 00087 00088 00089 00090 #endif