diff options
| author | zlago | 2024-09-02 10:58:10 +0200 | 
|---|---|---|
| committer | zlago | 2024-09-02 10:58:10 +0200 | 
| commit | aa759ff708196e5ea0f39bedabfbecb8f164294e (patch) | |
| tree | d5660e7edca437ce819d15e98cda466ae26631df /src/modules | |
| parent | 3b284977d433ea4e39553bda329c4643c646cbc4 (diff) | |
cleanup
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/fluidsynth.c | 2 | ||||
| -rw-r--r-- | src/modules/openmpt.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/modules/fluidsynth.c b/src/modules/fluidsynth.c index fd3c874..9eedc2c 100644 --- a/src/modules/fluidsynth.c +++ b/src/modules/fluidsynth.c @@ -36,7 +36,7 @@ int module_fluidsynth(struct blob *file, struct userdata *userdata) {  	fs->settings = new_fluid_settings(); // wasteful, but when trying to 'fix' it it just caused more errors  	fluid_settings_setnum(fs->settings, "synth.gain", 0.5);  	fluid_settings_setint(fs->settings, "player.reset-synth", 0); -	fluid_settings_setnum(fs->settings, "synth.sample-rate", 48000); +	fluid_settings_setnum(fs->settings, "synth.sample-rate", SAMPLE_RATE);  	fs->synth = new_fluid_synth(fs->settings);  	char *soundfont_path = getenv("SOUNDFONT");  	if (soundfont_path == NULL) { diff --git a/src/modules/openmpt.c b/src/modules/openmpt.c index 58c3994..027519f 100644 --- a/src/modules/openmpt.c +++ b/src/modules/openmpt.c @@ -4,7 +4,7 @@  #include <libopenmpt/libopenmpt.h>  static void openmpt_callback(void *mod, unsigned char *stream, int const length) { -	openmpt_module_read_interleaved_float_stereo(mod, 48000, length / sizeof (float) / 2, (float *) stream); +	openmpt_module_read_interleaved_float_stereo(mod, SAMPLE_RATE, length / sizeof (float) / 2, (float *) stream);  }  static void libopenmpt_example_logfunc( const char * message, void * userdata ); | 
