aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidioutfluid.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 20:34:34 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 20:34:34 +0800
commita4914ceb5c96e65b2923f2dcf414d7a7f7ccd92b (patch)
treec8395cc4ad2bf3f177917d4def67bea14d9d7f97 /core/qmpmidioutfluid.cpp
parent9b5e38847c238587ab39ce01e2c0d2b94d7e2b0c (diff)
downloadQMidiPlayer-a4914ceb5c96e65b2923f2dcf414d7a7f7ccd92b.tar.xz
new_fluid_audio_driver2 doesn't work for any audio drivers available on Windows.
whoops. another opportunity to inject my crappy code into fluidsynth though.
Diffstat (limited to 'core/qmpmidioutfluid.cpp')
-rw-r--r--core/qmpmidioutfluid.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/qmpmidioutfluid.cpp b/core/qmpmidioutfluid.cpp
index 22f4aa2..621840e 100644
--- a/core/qmpmidioutfluid.cpp
+++ b/core/qmpmidioutfluid.cpp
@@ -85,6 +85,11 @@ void qmpMidiOutFluid::deviceInit()
, this);
if (!adriver)
{
+ adriver = new_fluid_audio_driver(settings, synth);
+ output_level = 1e9 + 7;
+ }
+ if (!adriver)
+ {
fputs("Error creating fluidsynth audio driver!", stderr);
delete_fluid_synth(synth);
synth = nullptr;