# include/fluidsynth/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
    00051 typedef int (*fluid_audio_func_t)(void* data, int len,
    00052                                  int nin, float** in,
    00053                                  int nout, float** out);
    00054
    00055 FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver(fluid_settings_t* settings,
    00056                                                          fluid_synth_t* synth);
    00057
    00058 FLUIDSYNTH_API fluid_audio_driver_t* new_fluid_audio_driver2(fluid_settings_t* settings,
    00059                                                           fluid_audio_func_t func,
    00060                                                           void* data);
    00061
    00062 FLUIDSYNTH_API void delete_fluid_audio_driver(fluid_audio_driver_t* driver);
    00063
    00064
    00065
    00066 #ifdef __cplusplus
    00067 }
    00068 #endif
    00069
    00070 #endif /* _FLUIDSYNTH_AUDIO_H */