mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-27 14:32:12 +00:00
remove ramsfont
This commit is contained in:
parent
16a112956e
commit
d7609d43f6
5 changed files with 0 additions and 1378 deletions
|
@ -97,7 +97,6 @@ extern "C" {
|
|||
#include "fluidsynth/synth.h"
|
||||
#include "fluidsynth/shell.h"
|
||||
#include "fluidsynth/sfont.h"
|
||||
#include "fluidsynth/ramsfont.h"
|
||||
#include "fluidsynth/audio.h"
|
||||
#include "fluidsynth/event.h"
|
||||
#include "fluidsynth/midi.h"
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
/* FluidSynth - A Software Synthesizer
|
||||
*
|
||||
* Copyright (C) 2003 Peter Hanappe and others.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2.1 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA
|
||||
*/
|
||||
|
||||
/* RAM SoundFonts: October 2002 - Antoine Schmitt */
|
||||
|
||||
#ifndef _FLUIDSYNTH_RAMSFONT_H
|
||||
#define _FLUIDSYNTH_RAMSFONT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @file ramsfont.h
|
||||
* @brief API for creating and managing SoundFont instruments in RAM.
|
||||
*
|
||||
* RAM SoundFonts live in ram. The samples are loaded from files
|
||||
* or from RAM. A minimal API manages a soundFont structure,
|
||||
* with presets, each preset having only one preset-zone, which
|
||||
* instrument has potentially many instrument-zones. No global
|
||||
* zones, and nor generator nor modulator other than the default
|
||||
* ones are permitted. This may be extensible in the future.
|
||||
*/
|
||||
|
||||
FLUIDSYNTH_API fluid_sfont_t *fluid_ramsfont_create_sfont(void);
|
||||
FLUIDSYNTH_API int fluid_ramsfont_set_name(fluid_ramsfont_t *sfont, const char *name);
|
||||
FLUIDSYNTH_API
|
||||
int fluid_ramsfont_add_izone(fluid_ramsfont_t *sfont,
|
||||
int bank, int num, fluid_sample_t *sample,
|
||||
int lokey, int hikey);
|
||||
FLUIDSYNTH_API
|
||||
int fluid_ramsfont_remove_izone(fluid_ramsfont_t *sfont,
|
||||
int bank, int num, fluid_sample_t *sample);
|
||||
FLUIDSYNTH_API
|
||||
int fluid_ramsfont_izone_set_gen(fluid_ramsfont_t *sfont,
|
||||
int bank, int num, fluid_sample_t *sample,
|
||||
int gen_type, float value);
|
||||
FLUIDSYNTH_API
|
||||
int fluid_ramsfont_izone_set_loop(fluid_ramsfont_t *sfont,
|
||||
int bank, int num, fluid_sample_t *sample,
|
||||
int on, float loopstart, float loopend);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _FLUIDSYNTH_RAMSFONT_H */
|
|
@ -125,8 +125,6 @@ set ( libfluidsynth_SOURCES
|
|||
utils/fluid_sys.h
|
||||
sfloader/fluid_defsfont.c
|
||||
sfloader/fluid_defsfont.h
|
||||
sfloader/fluid_ramsfont.c
|
||||
sfloader/fluid_ramsfont.h
|
||||
sfloader/fluid_sfont.h
|
||||
sfloader/fluid_sfont.c
|
||||
sfloader/fluid_sffile.c
|
||||
|
@ -193,7 +191,6 @@ set ( public_HEADERS
|
|||
${CMAKE_SOURCE_DIR}/include/fluidsynth/midi.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/misc.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/mod.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/ramsfont.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/seq.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/seqbind.h
|
||||
${CMAKE_SOURCE_DIR}/include/fluidsynth/settings.h
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,71 +0,0 @@
|
|||
/* FluidSynth - A Software Synthesizer
|
||||
*
|
||||
* Copyright (C) 2003 Peter Hanappe and others.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 2.1 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _FLUID_RAMSFONT_H
|
||||
#define _FLUID_RAMSFONT_H
|
||||
|
||||
|
||||
#include "fluidsynth.h"
|
||||
#include "fluidsynth_priv.h"
|
||||
|
||||
#include "fluid_sfont.h"
|
||||
#include "fluid_defsfont.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* fluid_ramsfont_t
|
||||
*/
|
||||
struct _fluid_ramsfont_t
|
||||
{
|
||||
char name[21]; /* the name of the soundfont */
|
||||
fluid_sfont_t *sfont; /* parent sfont */
|
||||
fluid_list_t *sample; /* the samples in this soundfont */
|
||||
fluid_list_t *preset; /* the presets of this soundfont */
|
||||
|
||||
fluid_list_t *preset_iter_cur; /* the current preset in the iteration */
|
||||
};
|
||||
|
||||
/*
|
||||
* fluid_preset_t
|
||||
*/
|
||||
struct _fluid_rampreset_t
|
||||
{
|
||||
fluid_rampreset_t *next;
|
||||
fluid_ramsfont_t *sfont; /* the soundfont this preset belongs to */
|
||||
char name[21]; /* the name of the preset */
|
||||
unsigned int bank; /* the bank number */
|
||||
unsigned int num; /* the preset number */
|
||||
fluid_preset_zone_t *global_zone; /* the global zone of the preset */
|
||||
fluid_preset_zone_t *zone; /* the chained list of preset zones */
|
||||
fluid_list_t *presetvoices; /* chained list of used voices */
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _FLUID_SFONT_H */
|
Loading…
Reference in a new issue