From a4914ceb5c96e65b2923f2dcf414d7a7f7ccd92b Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 7 Jan 2021 20:34:34 +0800 Subject: 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. --- core/qmpmidioutfluid.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/qmpmidioutfluid.cpp') diff --git a/core/qmpmidioutfluid.cpp b/core/qmpmidioutfluid.cpp index 22f4aa2..621840e 100644 --- a/core/qmpmidioutfluid.cpp +++ b/core/qmpmidioutfluid.cpp @@ -84,6 +84,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); -- cgit v1.2.3