dynamic_fluidsynth.h
changeset 506 586ae09f8176
child 518 8bc9b5fd2aae
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dynamic_fluidsynth.h	Sun Mar 20 14:34:18 2011 +0000
     1.3 @@ -0,0 +1,55 @@
     1.4 +/*
     1.5 +    SDL_mixer:  An audio mixer library based on the SDL library
     1.6 +    Copyright (C) 1997-2011 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    James Le Cuirot
    1.23 +    chewi@aura-online.co.uk
    1.24 +*/
    1.25 +
    1.26 +#ifdef USE_FLUIDSYNTH_MIDI
    1.27 +
    1.28 +#include <fluidsynth.h>
    1.29 +
    1.30 +typedef struct {
    1.31 +	int loaded;
    1.32 +	void *handle;
    1.33 +
    1.34 +	int (*delete_fluid_player)(fluid_player_t*);
    1.35 +	void (*delete_fluid_settings)(fluid_settings_t*);
    1.36 +	int (*delete_fluid_synth)(fluid_synth_t*);
    1.37 +	int (*fluid_player_add)(fluid_player_t*, const char*);
    1.38 +	int (*fluid_player_add_mem)(fluid_player_t*, const void*, size_t);
    1.39 +	int (*fluid_player_get_status)(fluid_player_t*);
    1.40 +	int (*fluid_player_play)(fluid_player_t*);
    1.41 +	int (*fluid_player_set_loop)(fluid_player_t*, int);
    1.42 +	int (*fluid_player_stop)(fluid_player_t*);
    1.43 +	int (*fluid_settings_setnum)(fluid_settings_t*, const char*, double);
    1.44 +	fluid_settings_t* (*fluid_synth_get_settings)(fluid_synth_t*);
    1.45 +	void (*fluid_synth_set_gain)(fluid_synth_t*, float);
    1.46 +	int (*fluid_synth_sfload)(fluid_synth_t*, const char*, int);
    1.47 +	int (*fluid_synth_write_s16)(fluid_synth_t*, int, void*, int, int, void*, int, int);
    1.48 +	fluid_player_t* (*new_fluid_player)(fluid_synth_t*);
    1.49 +	fluid_settings_t* (*new_fluid_settings)(void);
    1.50 +	fluid_synth_t* (*new_fluid_synth)(fluid_settings_t*);
    1.51 +} fluidsynth_loader;
    1.52 +
    1.53 +extern fluidsynth_loader fluidsynth;
    1.54 +
    1.55 +#endif /* USE_FLUIDSYNTH_MIDI */
    1.56 +
    1.57 +extern int Mix_InitFluidSynth();
    1.58 +extern void Mix_QuitFluidSynth();