From ea68a817c1947b2001775d42755d260d66f4d37f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 7 Jan 2021 14:09:38 +0800 Subject: Wait voice now checks for output level instead of polyphony. Fluidsynth sometimes screw up the number of currently sounding voices. --- core/qmpmidioutfluid.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/qmpmidioutfluid.hpp') diff --git a/core/qmpmidioutfluid.hpp b/core/qmpmidioutfluid.hpp index acefb68..4fdceff 100644 --- a/core/qmpmidioutfluid.hpp +++ b/core/qmpmidioutfluid.hpp @@ -29,6 +29,7 @@ private: std::vector drivers; int default_driver = -1; void update_preset_list(); + double output_level; public: qmpMidiOutFluid(); ~qmpMidiOutFluid(); @@ -58,6 +59,7 @@ public: int getPolyphone(); int getMaxPolyphone(); + double getOutputLevel(); void setGain(double gain); void getChannelInfo(int ch, int *b, int *p, char *s); void getReverbPara(double *r, double *d, double *w, double *l); -- cgit v1.2.3