mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-05-10 15:30:58 +00:00
cleanup fluidsynth.c
This commit is contained in:
parent
3a4385c7f6
commit
6e3644d1aa
1 changed files with 2 additions and 20 deletions
|
@ -42,10 +42,6 @@
|
||||||
#include "config_win32.h"
|
#include "config_win32.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SIGNAL_H
|
|
||||||
#include "signal.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "fluid_lash.h"
|
#include "fluid_lash.h"
|
||||||
|
|
||||||
#ifndef WITH_MIDI
|
#ifndef WITH_MIDI
|
||||||
|
@ -263,16 +259,6 @@ fast_render_loop(fluid_settings_t* settings, fluid_synth_t* synth, fluid_player_
|
||||||
delete_fluid_file_renderer(renderer);
|
delete_fluid_file_renderer(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SIGNAL_H
|
|
||||||
/*
|
|
||||||
* handle_signal
|
|
||||||
*/
|
|
||||||
void handle_signal(int sig_num)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* main
|
* main
|
||||||
*/
|
*/
|
||||||
|
@ -632,10 +618,6 @@ int main(int argc, char** argv)
|
||||||
argv[i]);
|
argv[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SIGNAL_H
|
|
||||||
/* signal(SIGINT, handle_signal); */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* start the synthesis thread */
|
/* start the synthesis thread */
|
||||||
if (!fast_render) {
|
if (!fast_render) {
|
||||||
adriver = new_fluid_audio_driver(settings, synth);
|
adriver = new_fluid_audio_driver(settings, synth);
|
||||||
|
@ -682,9 +664,9 @@ int main(int argc, char** argv)
|
||||||
/* run commands specified in config file */
|
/* run commands specified in config file */
|
||||||
if (config_file != NULL) {
|
if (config_file != NULL) {
|
||||||
fluid_source(cmd_handler, config_file);
|
fluid_source(cmd_handler, config_file);
|
||||||
} else if (fluid_get_userconf(buf, 512) != NULL) {
|
} else if (fluid_get_userconf(buf, sizeof(buf)*sizeof(buf[0])) != NULL) {
|
||||||
fluid_source(cmd_handler, buf);
|
fluid_source(cmd_handler, buf);
|
||||||
} else if (fluid_get_sysconf(buf, 512) != NULL) {
|
} else if (fluid_get_sysconf(buf, sizeof(buf)*sizeof(buf[0])) != NULL) {
|
||||||
fluid_source(cmd_handler, buf);
|
fluid_source(cmd_handler, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue