Main Page   Data Structures   File List   Data Fields   Globals  

audio.h

Go to the documentation of this file.
00001 /* FluidSynth - A Software Synthesizer
00002  *
00003  * Copyright (C) 2003  Peter Hanappe and others.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public License
00007  * as published by the Free Software Foundation; either version 2 of
00008  * the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *  
00015  * You should have received a copy of the GNU Library General Public
00016  * License along with this library; if not, write to the Free
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018  * 02111-1307, USA
00019  */
00020 
00021 #ifndef _FLUIDSYNTH_AUDIO_H
00022 #define _FLUIDSYNTH_AUDIO_H
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00029 
00037 typedef int (*fluid_audio_func_t)(void* data, int len, 
00038                                  int nin, float** in, 
00039                                  int nout, float** out);
00040 
00041 FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver(fluid_settings_t* settings, 
00042                                                          fluid_synth_t* synth);
00043 
00044 FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver2(fluid_settings_t* settings, 
00045                                                           fluid_audio_func_t func,
00046                                                           void* data);
00047 
00048 FLUIDSYNTH_API void delete_fluid_audio_driver(fluid_audio_driver_t* driver);
00049 
00050 
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 
00056 #endif /* _FLUIDSYNTH_AUDIO_H */

Generated on Thu Mar 13 19:09:34 2003 for libfluidsynth by doxygen1.2.15