mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +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"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include "signal.h"
|
||||
#endif
|
||||
|
||||
#include "fluid_lash.h"
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
/*
|
||||
* handle_signal
|
||||
*/
|
||||
void handle_signal(int sig_num)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* main
|
||||
*/
|
||||
|
@ -632,10 +618,6 @@ int main(int argc, char** argv)
|
|||
argv[i]);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
/* signal(SIGINT, handle_signal); */
|
||||
#endif
|
||||
|
||||
/* start the synthesis thread */
|
||||
if (!fast_render) {
|
||||
adriver = new_fluid_audio_driver(settings, synth);
|
||||
|
@ -682,9 +664,9 @@ int main(int argc, char** argv)
|
|||
/* run commands specified in config file */
|
||||
if (config_file != NULL) {
|
||||
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);
|
||||
} 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue