From 446263beafeafa831530a6f9711aa891955b7db3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 22 Apr 2016 21:06:51 +0800 Subject: First stable version! Remove visualization stub. Complain explicitly if an invalid file is loaded. Remove fluidsynth warnings from stderr. --- core/qmpmidiplay.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp index ab312f7..e33f804 100644 --- a/core/qmpmidiplay.cpp +++ b/core/qmpmidiplay.cpp @@ -15,6 +15,11 @@ void CMidiPlayer::fluidPreInitialize() void CMidiPlayer::fluidInitialize() { synth=new_fluid_synth(settings); + fluid_set_log_function(FLUID_DBG,NULL,NULL); + fluid_set_log_function(FLUID_INFO,NULL,NULL); + fluid_set_log_function(FLUID_WARN,NULL,NULL); + fluid_set_log_function(FLUID_ERR,fluid_default_log_function,NULL); + fluid_set_log_function(FLUID_PANIC,fluid_default_log_function,NULL); adriver=new_fluid_audio_driver(settings,synth); fluid_synth_set_chorus(synth,FLUID_CHORUS_DEFAULT_N,FLUID_CHORUS_DEFAULT_LEVEL, FLUID_CHORUS_DEFAULT_SPEED,FLUID_CHORUS_DEFAULT_DEPTH, -- cgit v1.2.3