aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidioutfluid.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 14:09:38 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-07 14:09:38 +0800
commitea68a817c1947b2001775d42755d260d66f4d37f (patch)
tree3ad0650984c5f442f94fd573a7c74616f193048f /core/qmpmidioutfluid.hpp
parent327526848c930c5cca7fafbde36d60ea45b786db (diff)
downloadQMidiPlayer-ea68a817c1947b2001775d42755d260d66f4d37f.tar.xz
Wait voice now checks for output level instead of polyphony.
Fluidsynth sometimes screw up the number of currently sounding voices.
Diffstat (limited to 'core/qmpmidioutfluid.hpp')
-rw-r--r--core/qmpmidioutfluid.hpp2
1 files changed, 2 insertions, 0 deletions
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<std::string> 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);