view src/amidi-plug/backend-fluidsynth/b-fluidsynth.h @ 578:550c9e382cf8 trunk

[svn] - splitted GTK_CFLAGS in GTK_CFLAGS, GLIB_CFLAGS and PANGO_CFLAGS, splitted GTK_LIBS in GTK_LIBS, GLIB_LIBS, PANGO_LIBS
author giacomo
date Tue, 30 Jan 2007 08:04:43 -0800
parents e1c6b223431e
children
line wrap: on
line source

/*
*
* Author: Giacomo Lozito <james@develia.org>, (C) 2005-2006
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
*
*/

#ifndef _B_FLUIDSYNTH_H
#define _B_FLUIDSYNTH_H 1

#include <fluidsynth.h>
#include <math.h>
#include "../i_common.h"
#include "../i_configure_file.h"
#include "../pcfg/i_pcfg.h"
#include "../i_midievent.h"


typedef struct
{
  fluid_settings_t * settings;
  fluid_synth_t * synth;

  GArray *soundfont_ids;

  gint ppq;
  gdouble cur_microsec_per_tick;
  guint tick_offset;

  GTimer * timer_seq;
  GTimer * timer_sample;

  guint sample_rate;
  gdouble last_sample_time;
}
sequencer_client_t;


void i_sleep( guint );
void i_soundfont_load( void );
void i_cfg_read( i_cfg_get_file_cb );
void i_cfg_free( void );

#endif /* !_B_FLUIDSYNTH_H */