2021-04-18 15:25:20 -04:00
|
|
|
diff --git b/libs/fluidsynth/fluidsynth/settings.h a/libs/fluidsynth/fluidsynth/settings.h
|
|
|
|
index a8b3cb85ec..aba86e3379 100644
|
|
|
|
--- b/libs/fluidsynth/fluidsynth/settings.h
|
|
|
|
+++ a/libs/fluidsynth/fluidsynth/settings.h
|
|
|
|
@@ -123,7 +123,7 @@ FLUIDSYNTH_API
|
|
|
|
int fluid_settings_dupstr(fluid_settings_t *settings, const char *name, char **str);
|
|
|
|
|
|
|
|
FLUIDSYNTH_API
|
|
|
|
-int fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char **def);
|
|
|
|
+int fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char const **def);
|
|
|
|
|
|
|
|
FLUIDSYNTH_API
|
|
|
|
int fluid_settings_str_equal(fluid_settings_t *settings, const char *name, const char *value);
|
2018-10-17 18:41:02 -04:00
|
|
|
diff --git b/libs/fluidsynth/fluidsynth/synth.h a/libs/fluidsynth/fluidsynth/synth.h
|
2021-04-18 15:25:20 -04:00
|
|
|
index b8d0b0ab1e..126532554f 100644
|
2018-10-17 18:41:02 -04:00
|
|
|
--- b/libs/fluidsynth/fluidsynth/synth.h
|
|
|
|
+++ a/libs/fluidsynth/fluidsynth/synth.h
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -21,6 +21,7 @@
|
|
|
|
#ifndef _FLUIDSYNTH_SYNTH_H
|
|
|
|
#define _FLUIDSYNTH_SYNTH_H
|
2019-12-02 17:58:15 -05:00
|
|
|
|
2021-04-18 15:25:20 -04:00
|
|
|
+#define FLUID_DEPRECATED
|
2019-12-02 17:58:15 -05:00
|
|
|
|
2021-04-18 15:25:20 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
@@ -530,8 +531,10 @@ int fluid_synth_pin_preset(fluid_synth_t *synth, int sfont_id, int bank_num, int
|
|
|
|
FLUIDSYNTH_API
|
|
|
|
int fluid_synth_unpin_preset(fluid_synth_t *synth, int sfont_id, int bank_num, int preset_num);
|
2018-10-17 18:41:02 -04:00
|
|
|
|
|
|
|
+#ifdef LADSPA
|
2021-04-18 15:25:20 -04:00
|
|
|
/** @ingroup ladspa */
|
2018-10-17 18:41:02 -04:00
|
|
|
FLUIDSYNTH_API fluid_ladspa_fx_t *fluid_synth_get_ladspa_fx(fluid_synth_t *synth);
|
|
|
|
+#endif
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2021-04-18 15:25:20 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2018-10-17 18:41:02 -04:00
|
|
|
diff --git b/libs/fluidsynth/fluidsynth/types.h a/libs/fluidsynth/fluidsynth/types.h
|
2021-04-18 15:25:20 -04:00
|
|
|
index 4352b4c573..6c7994fe83 100644
|
2018-10-17 18:41:02 -04:00
|
|
|
--- b/libs/fluidsynth/fluidsynth/types.h
|
|
|
|
+++ a/libs/fluidsynth/fluidsynth/types.h
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -58,7 +58,9 @@ typedef struct _fluid_sequencer_t fluid_sequencer_t; /**< Sequencer i
|
2018-10-17 18:41:02 -04:00
|
|
|
typedef struct _fluid_ramsfont_t fluid_ramsfont_t; /**< RAM SoundFont */
|
|
|
|
typedef struct _fluid_rampreset_t fluid_rampreset_t; /**< RAM SoundFont preset */
|
|
|
|
typedef struct _fluid_cmd_handler_t fluid_cmd_handler_t; /**< Shell Command Handler */
|
|
|
|
+#ifdef LADSPA
|
|
|
|
typedef struct _fluid_ladspa_fx_t fluid_ladspa_fx_t; /**< LADSPA effects instance */
|
2016-08-23 12:50:54 -04:00
|
|
|
+#endif
|
2018-10-17 18:41:02 -04:00
|
|
|
typedef struct _fluid_file_callbacks_t fluid_file_callbacks_t; /**< Callback struct to perform custom file loading of soundfonts */
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
typedef int fluid_istream_t; /**< Input stream descriptor */
|
2018-11-23 08:36:52 -05:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_conv.h a/libs/fluidsynth/src/fluid_conv.h
|
2019-04-19 09:25:47 -04:00
|
|
|
index 60f441c49f..e6455186eb 100644
|
2018-11-23 08:36:52 -05:00
|
|
|
--- b/libs/fluidsynth/src/fluid_conv.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_conv.h
|
|
|
|
@@ -22,7 +22,7 @@
|
|
|
|
#define _FLUID_CONV_H
|
|
|
|
|
|
|
|
#include "fluidsynth_priv.h"
|
|
|
|
-#include "utils/fluid_conv_tables.h"
|
|
|
|
+#include "fluid_conv_tables.h"
|
|
|
|
|
|
|
|
fluid_real_t fluid_ct2hz_real(fluid_real_t cents);
|
|
|
|
fluid_real_t fluid_ct2hz(fluid_real_t cents);
|
2021-04-18 15:25:20 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_gen.h a/libs/fluidsynth/src/fluid_gen.h
|
|
|
|
index b87e8d8a8c..75a4f39e8a 100644
|
|
|
|
--- b/libs/fluidsynth/src/fluid_gen.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_gen.h
|
|
|
|
@@ -27,7 +27,7 @@
|
|
|
|
typedef struct _fluid_gen_info_t
|
|
|
|
{
|
|
|
|
char num; /* Generator number */
|
|
|
|
- char *name;
|
|
|
|
+ char const *name;
|
|
|
|
char init; /* Does the generator need to be initialized (not used) */
|
|
|
|
char nrpn_scale; /* The scale to convert from NRPN (cfr. fluid_gen_map_nrpn()) */
|
|
|
|
float min; /* The minimum value */
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_hash.c a/libs/fluidsynth/src/fluid_hash.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index 7efd0dedda..46f701c4ba 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_hash.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_hash.c
|
2018-10-17 18:41:02 -04:00
|
|
|
@@ -991,6 +991,7 @@ fluid_hashtable_remove_all(fluid_hashtable_t *hashtable)
|
|
|
|
fluid_hashtable_maybe_resize(hashtable);
|
2016-08-23 12:50:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
/**
|
2018-10-17 18:41:02 -04:00
|
|
|
* fluid_hashtable_steal_all:
|
2016-08-23 12:50:54 -04:00
|
|
|
* @hashtable: a #fluid_hashtable_t.
|
2018-10-17 18:41:02 -04:00
|
|
|
@@ -1008,6 +1009,7 @@ fluid_hashtable_steal_all(fluid_hashtable_t *hashtable)
|
|
|
|
fluid_hashtable_remove_all_nodes(hashtable, FALSE);
|
|
|
|
fluid_hashtable_maybe_resize(hashtable);
|
2016-08-23 12:50:54 -04:00
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
/*
|
|
|
|
* fluid_hashtable_foreach_remove_or_steal:
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_midi.c a/libs/fluidsynth/src/fluid_midi.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index 796b278fea..830aada199 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_midi.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_midi.c
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -72,7 +72,7 @@ static int fluid_midi_file_read_tracklen(fluid_midi_file *mf);
|
2018-10-17 18:41:02 -04:00
|
|
|
static int fluid_midi_file_eot(fluid_midi_file *mf);
|
|
|
|
static int fluid_midi_file_get_division(fluid_midi_file *midifile);
|
2016-08-24 07:04:03 -04:00
|
|
|
|
|
|
|
-
|
|
|
|
+#if 0 // disable file I/O with Ardour
|
|
|
|
/***************************************************************
|
|
|
|
*
|
|
|
|
* MIDIFILE
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -1042,6 +1042,7 @@ fluid_midi_file_get_division(fluid_midi_file *midifile)
|
2016-08-24 07:04:03 -04:00
|
|
|
{
|
|
|
|
return midifile->division;
|
2016-08-23 12:50:54 -04:00
|
|
|
}
|
2016-08-24 07:04:03 -04:00
|
|
|
+#endif
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2016-08-24 07:04:03 -04:00
|
|
|
/******************************************************
|
|
|
|
*
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -1408,7 +1409,7 @@ static void fluid_midi_event_get_sysex_LOCAL(fluid_midi_event_t *evt, void **dat
|
2016-08-24 07:04:03 -04:00
|
|
|
*
|
|
|
|
* fluid_track_t
|
|
|
|
*/
|
|
|
|
-
|
|
|
|
+#if 0 // disable fluid file player in Ardour
|
|
|
|
/*
|
|
|
|
* new_fluid_track
|
|
|
|
*/
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -2728,3 +2729,4 @@ fluid_midi_event_length(unsigned char event)
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2016-08-24 07:04:03 -04:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
+#endif
|
2019-01-02 09:33:23 -05:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_mod.c a/libs/fluidsynth/src/fluid_mod.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index effa202750..3b2a827814 100644
|
2019-01-02 09:33:23 -05:00
|
|
|
--- b/libs/fluidsynth/src/fluid_mod.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_mod.c
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -620,7 +620,7 @@ fluid_mod_check_cc_source(const fluid_mod_t *mod, unsigned char src1_select)
|
2019-01-02 09:33:23 -05:00
|
|
|
* @param name,if not NULL, pointer on a string displayed as a warning.
|
|
|
|
* @return TRUE if modulator sources src1, src2 are valid, FALSE otherwise.
|
|
|
|
*/
|
|
|
|
-int fluid_mod_check_sources(const fluid_mod_t *mod, char *name)
|
|
|
|
+int fluid_mod_check_sources(const fluid_mod_t *mod, const char *name)
|
2016-08-23 12:50:54 -04:00
|
|
|
{
|
2019-09-03 22:22:24 -04:00
|
|
|
static const char invalid_non_cc_src[] =
|
2019-01-02 09:33:23 -05:00
|
|
|
"Invalid modulator, using non-CC source %s.src%d=%d";
|
|
|
|
diff --git b/libs/fluidsynth/src/fluid_mod.h a/libs/fluidsynth/src/fluid_mod.h
|
2019-04-19 09:25:47 -04:00
|
|
|
index 3e7661741f..ec8e967a35 100644
|
2019-01-02 09:33:23 -05:00
|
|
|
--- b/libs/fluidsynth/src/fluid_mod.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_mod.h
|
|
|
|
@@ -44,7 +44,7 @@ struct _fluid_mod_t
|
|
|
|
};
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2019-01-02 09:33:23 -05:00
|
|
|
fluid_real_t fluid_mod_get_value(fluid_mod_t *mod, fluid_voice_t *voice);
|
|
|
|
-int fluid_mod_check_sources(const fluid_mod_t *mod, char *name);
|
|
|
|
+int fluid_mod_check_sources(const fluid_mod_t *mod, const char *name);
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
void fluid_dump_modulator(fluid_mod_t *mod);
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_rvoice_mixer.c a/libs/fluidsynth/src/fluid_rvoice_mixer.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index 0b2d16066f..9bf7aec7bf 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_rvoice_mixer.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_rvoice_mixer.c
|
2019-02-23 11:58:05 -05:00
|
|
|
@@ -23,7 +23,6 @@
|
|
|
|
#include "fluid_sys.h"
|
2016-08-23 12:50:54 -04:00
|
|
|
#include "fluid_rev.h"
|
|
|
|
#include "fluid_chorus.h"
|
|
|
|
-#include "fluid_ladspa.h"
|
2018-10-17 18:41:02 -04:00
|
|
|
#include "fluid_synth.h"
|
2016-08-24 07:04:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
diff --git b/libs/fluidsynth/src/fluid_rvoice_mixer.h a/libs/fluidsynth/src/fluid_rvoice_mixer.h
|
2021-04-18 15:25:20 -04:00
|
|
|
index 63a456ce19..6139081185 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_rvoice_mixer.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_rvoice_mixer.h
|
2018-10-17 18:41:02 -04:00
|
|
|
@@ -24,7 +24,6 @@
|
2016-08-23 12:50:54 -04:00
|
|
|
|
|
|
|
#include "fluidsynth_priv.h"
|
|
|
|
#include "fluid_rvoice.h"
|
|
|
|
-#include "fluid_ladspa.h"
|
|
|
|
|
|
|
|
typedef struct _fluid_rvoice_mixer_t fluid_rvoice_mixer_t;
|
|
|
|
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_settings.c a/libs/fluidsynth/src/fluid_settings.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index 2d9f7b10aa..d5c6b940f3 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_settings.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_settings.c
|
2018-10-17 18:41:02 -04:00
|
|
|
@@ -21,9 +21,6 @@
|
2016-08-23 12:50:54 -04:00
|
|
|
#include "fluid_sys.h"
|
|
|
|
#include "fluid_hash.h"
|
|
|
|
#include "fluid_synth.h"
|
|
|
|
-#include "fluid_cmd.h"
|
|
|
|
-#include "fluid_adriver.h"
|
|
|
|
-#include "fluid_mdriver.h"
|
|
|
|
#include "fluid_settings.h"
|
|
|
|
#include "fluid_midi.h"
|
|
|
|
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -330,11 +327,13 @@ fluid_settings_init(fluid_settings_t *settings)
|
2018-10-17 18:41:02 -04:00
|
|
|
fluid_return_if_fail(settings != NULL);
|
2016-08-23 12:50:54 -04:00
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
fluid_synth_settings(settings);
|
2016-08-23 12:50:54 -04:00
|
|
|
+#if 0
|
2018-10-17 18:41:02 -04:00
|
|
|
fluid_shell_settings(settings);
|
|
|
|
fluid_player_settings(settings);
|
|
|
|
fluid_file_renderer_settings(settings);
|
|
|
|
fluid_audio_driver_settings(settings);
|
|
|
|
fluid_midi_driver_settings(settings);
|
2016-08-23 12:50:54 -04:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -1215,10 +1214,10 @@ fluid_settings_str_equal(fluid_settings_t *settings, const char *name, const cha
|
|
|
|
* @note The returned string is not owned by the caller and should not be modified or freed.
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
-fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char **def)
|
|
|
|
+fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char const **def)
|
|
|
|
{
|
|
|
|
fluid_setting_node_t *node;
|
|
|
|
- char *retval = NULL;
|
|
|
|
+ char const *retval = NULL;
|
|
|
|
|
|
|
|
fluid_return_val_if_fail(settings != NULL, FLUID_FAILED);
|
|
|
|
fluid_return_val_if_fail(name != NULL, FLUID_FAILED);
|
|
|
|
diff --git b/libs/fluidsynth/src/fluid_sfont.c a/libs/fluidsynth/src/fluid_sfont.c
|
|
|
|
index f5de0a5bdf..94844f84bf 100644
|
|
|
|
--- b/libs/fluidsynth/src/fluid_sfont.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_sfont.c
|
|
|
|
@@ -22,7 +22,7 @@
|
|
|
|
#include "fluid_sys.h"
|
|
|
|
|
|
|
|
|
|
|
|
-void *default_fopen(const char *path)
|
|
|
|
+static void *default_fopen(const char *path)
|
|
|
|
{
|
|
|
|
const char* msg;
|
|
|
|
FILE* handle = fluid_file_open(path, &msg);
|
|
|
|
@@ -35,17 +35,17 @@ void *default_fopen(const char *path)
|
|
|
|
return handle;
|
|
|
|
}
|
|
|
|
|
|
|
|
-int default_fclose(void *handle)
|
|
|
|
+static int default_fclose(void *handle)
|
|
|
|
{
|
|
|
|
return FLUID_FCLOSE((FILE *)handle) == 0 ? FLUID_OK : FLUID_FAILED;
|
|
|
|
}
|
|
|
|
|
|
|
|
-fluid_long_long_t default_ftell(void *handle)
|
|
|
|
+static fluid_long_long_t default_ftell(void *handle)
|
|
|
|
{
|
|
|
|
return FLUID_FTELL((FILE *)handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
-int safe_fread(void *buf, fluid_long_long_t count, void *fd)
|
|
|
|
+static int safe_fread(void *buf, fluid_long_long_t count, void *fd)
|
|
|
|
{
|
|
|
|
if(FLUID_FREAD(buf, (size_t)count, 1, (FILE *)fd) != 1)
|
|
|
|
{
|
|
|
|
@@ -64,7 +64,7 @@ int safe_fread(void *buf, fluid_long_long_t count, void *fd)
|
|
|
|
return FLUID_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
-int safe_fseek(void *fd, fluid_long_long_t ofs, int whence)
|
|
|
|
+static int safe_fseek(void *fd, fluid_long_long_t ofs, int whence)
|
|
|
|
{
|
|
|
|
if(FLUID_FSEEK((FILE *)fd, ofs, whence) != 0)
|
|
|
|
{
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_synth.c a/libs/fluidsynth/src/fluid_synth.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index 89def2fd03..27e7022c5b 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_synth.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_synth.c
|
2019-09-03 22:22:24 -04:00
|
|
|
@@ -25,7 +25,6 @@
|
|
|
|
#include "fluid_settings.h"
|
|
|
|
#include "fluid_sfont.h"
|
|
|
|
#include "fluid_defsfont.h"
|
|
|
|
-#include "fluid_instpatch.h"
|
|
|
|
|
|
|
|
#ifdef TRAP_ON_FPE
|
|
|
|
#define _GNU_SOURCE
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -271,7 +270,7 @@ void fluid_version(int *major, int *minor, int *micro)
|
2018-10-17 18:41:02 -04:00
|
|
|
* @return FluidSynth version string, which is internal and should not be
|
|
|
|
* modified or freed.
|
2016-08-23 12:50:54 -04:00
|
|
|
*/
|
2018-10-17 18:41:02 -04:00
|
|
|
-char *
|
|
|
|
+const char *
|
|
|
|
fluid_version_str(void)
|
2016-08-23 12:50:54 -04:00
|
|
|
{
|
2018-10-17 18:41:02 -04:00
|
|
|
return FLUIDSYNTH_VERSION;
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -6748,7 +6747,7 @@ fluid_synth_set_interp_method(fluid_synth_t *synth, int chan, int interp_method)
|
2019-09-03 22:22:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
FLUID_API_RETURN(FLUID_OK);
|
|
|
|
-};
|
|
|
|
+}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the total count of MIDI channels.
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -7709,6 +7708,7 @@ int fluid_synth_set_channel_type(fluid_synth_t *synth, int chan, int type)
|
2018-10-17 18:41:02 -04:00
|
|
|
FLUID_API_RETURN(FLUID_OK);
|
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef LADSPA
|
|
|
|
/**
|
|
|
|
* Return the LADSPA effects instance used by FluidSynth
|
|
|
|
*
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -7721,6 +7721,7 @@ fluid_ladspa_fx_t *fluid_synth_get_ladspa_fx(fluid_synth_t *synth)
|
2018-10-17 18:41:02 -04:00
|
|
|
|
|
|
|
return synth->ladspa_fx;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configure a general-purpose IIR biquad filter.
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_synth.h a/libs/fluidsynth/src/fluid_synth.h
|
2021-04-18 15:25:20 -04:00
|
|
|
index 132a98ddae..9b0078f04b 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_synth.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_synth.h
|
2018-10-17 18:41:02 -04:00
|
|
|
@@ -33,8 +33,6 @@
|
2016-08-23 12:50:54 -04:00
|
|
|
#include "fluid_rev.h"
|
|
|
|
#include "fluid_voice.h"
|
|
|
|
#include "fluid_chorus.h"
|
|
|
|
-#include "fluid_ladspa.h"
|
|
|
|
-#include "fluid_midi_router.h"
|
|
|
|
#include "fluid_rvoice_event.h"
|
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
/***************************************************************
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -161,7 +159,9 @@ struct _fluid_synth_t
|
2018-10-17 18:41:02 -04:00
|
|
|
|
|
|
|
fluid_mod_t *default_mod; /**< the (dynamic) list of default modulators */
|
|
|
|
|
|
|
|
+#ifdef LADSPA
|
|
|
|
fluid_ladspa_fx_t *ladspa_fx; /**< Effects unit for LADSPA support */
|
|
|
|
+#endif
|
|
|
|
enum fluid_iir_filter_type custom_filter_type; /**< filter type of the user-defined filter currently used for all voices */
|
|
|
|
enum fluid_iir_filter_flags custom_filter_flags; /**< filter type of the user-defined filter currently used for all voices */
|
|
|
|
};
|
2016-08-24 07:04:03 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_sys.c a/libs/fluidsynth/src/fluid_sys.c
|
2021-04-18 15:25:20 -04:00
|
|
|
index d5a8452963..609af21f36 100644
|
2016-08-24 07:04:03 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_sys.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_sys.c
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -309,9 +309,10 @@ void fluid_free(void* ptr)
|
2018-10-17 18:41:02 -04:00
|
|
|
* @param delim String of delimiter chars.
|
|
|
|
* @return Pointer to the next token or NULL if no more tokens.
|
|
|
|
*/
|
|
|
|
-char *fluid_strtok(char **str, char *delim)
|
|
|
|
+char *fluid_strtok(char **str, const char *delim)
|
2016-08-24 07:04:03 -04:00
|
|
|
{
|
2018-10-17 18:41:02 -04:00
|
|
|
- char *s, *d, *token;
|
|
|
|
+ char *s, *token;
|
|
|
|
+ const char *d;
|
|
|
|
char c;
|
|
|
|
|
|
|
|
if(str == NULL || delim == NULL || !*delim)
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -1282,7 +1283,7 @@ long fluid_timer_get_interval(const fluid_timer_t * timer)
|
|
|
|
* Get standard in stream handle.
|
|
|
|
* @return Standard in stream.
|
|
|
|
*/
|
|
|
|
-fluid_istream_t
|
|
|
|
+static fluid_istream_t
|
|
|
|
fluid_get_stdin(void)
|
|
|
|
{
|
|
|
|
return STDIN_FILENO;
|
|
|
|
@@ -1292,7 +1293,7 @@ fluid_get_stdin(void)
|
|
|
|
* Get standard output stream handle.
|
|
|
|
* @return Standard out stream.
|
|
|
|
*/
|
|
|
|
-fluid_ostream_t
|
|
|
|
+static fluid_ostream_t
|
|
|
|
fluid_get_stdout(void)
|
|
|
|
{
|
|
|
|
return STDOUT_FILENO;
|
2018-10-17 18:41:02 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_sys.h a/libs/fluidsynth/src/fluid_sys.h
|
2021-04-18 15:25:20 -04:00
|
|
|
index 86a47f32dc..05d6c6f200 100644
|
2018-10-17 18:41:02 -04:00
|
|
|
--- b/libs/fluidsynth/src/fluid_sys.h
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_sys.h
|
2019-12-02 17:58:15 -05:00
|
|
|
@@ -130,8 +130,9 @@ typedef gintptr intptr_t;
|
2016-08-25 16:37:12 -04:00
|
|
|
#endif
|
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
#if defined(WIN32) && HAVE_WINDOWS_H
|
2016-08-25 16:37:12 -04:00
|
|
|
-#include <winsock2.h>
|
2018-10-17 18:41:02 -04:00
|
|
|
-#include <ws2tcpip.h> /* Provides also socklen_t */
|
|
|
|
+//#include <winsock2.h>
|
|
|
|
+//#include <ws2tcpip.h> /* Provides also socklen_t */
|
|
|
|
+#include <windows.h>
|
2016-08-28 07:47:12 -04:00
|
|
|
|
2018-10-17 18:41:02 -04:00
|
|
|
/* WIN32 special defines */
|
2018-11-23 08:36:52 -05:00
|
|
|
#define STDIN_FILENO 0
|
2021-04-18 15:25:20 -04:00
|
|
|
@@ -198,7 +199,7 @@ char* fluid_get_windows_error(void);
|
2019-02-23 11:58:05 -05:00
|
|
|
/*
|
|
|
|
* Utility functions
|
|
|
|
*/
|
|
|
|
-char *fluid_strtok(char **str, char *delim);
|
|
|
|
+char *fluid_strtok(char **str, const char *delim);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__OS2__)
|
2021-04-18 15:25:20 -04:00
|
|
|
diff --git b/libs/fluidsynth/src/fluid_voice.c a/libs/fluidsynth/src/fluid_voice.c
|
|
|
|
index 47f28d2a50..2ef0aee066 100644
|
|
|
|
--- b/libs/fluidsynth/src/fluid_voice.c
|
|
|
|
+++ a/libs/fluidsynth/src/fluid_voice.c
|
|
|
|
@@ -480,7 +480,7 @@ fluid_voice_calculate_gain_amplitude(const fluid_voice_t *voice, fluid_real_t ga
|
|
|
|
This is useful to set the value of GEN_PITCH generator on noteOn.
|
|
|
|
This is useful to get the beginning/ending pitch for portamento.
|
|
|
|
*/
|
|
|
|
-fluid_real_t fluid_voice_calculate_pitch(fluid_voice_t *voice, int key)
|
|
|
|
+static fluid_real_t fluid_voice_calculate_pitch(fluid_voice_t *voice, int key)
|
|
|
|
{
|
|
|
|
fluid_tuning_t *tuning;
|
|
|
|
fluid_real_t x, pitch;
|