aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-22 21:06:51 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-22 21:06:51 +0800
commit446263beafeafa831530a6f9711aa891955b7db3 (patch)
tree00e9d55274580d413e6d88747d8fe7893cd69ac2 /core
parent7457599cb1bbf1d28b4b29bc12d07801b37ad410 (diff)
downloadQMidiPlayer-446263beafeafa831530a6f9711aa891955b7db3.tar.xz
First stable version!0.7.2-5
Remove visualization stub. Complain explicitly if an invalid file is loaded. Remove fluidsynth warnings from stderr.
Diffstat (limited to 'core')
-rw-r--r--core/qmpmidiplay.cpp5
1 files changed, 5 insertions, 0 deletions
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,