00001 /* 00002 00003 TiMidity -- Experimental MIDI to WAVE converter 00004 Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program 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 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 00020 readmidi.h 00021 00022 */ 00023 00024 #ifdef USE_TIMIDITY_MIDI 00025 00026 #ifndef TIMIDITY_READMIDI_H_INCLUDED 00027 #define TIMIDITY_READMIDI_H_INCLUDED 00028 00029 #include "timidity.h" 00030 00031 #ifdef NS_TIMIDITY 00032 namespace NS_TIMIDITY { 00033 #endif 00034 00035 struct MidiEventList { 00036 MidiEvent event; 00037 MidiEventList *next; 00038 }; 00039 00040 extern sint32 quietchannels; 00041 00042 extern MidiEvent *read_midi_file(FILE *mfp, sint32 *count, sint32 *sp); 00043 00044 #ifdef NS_TIMIDITY 00045 }; 00046 #endif 00047 00048 #endif 00049 00050 #endif //USE_TIMIDITY_MIDI