diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-11-11 23:38:09 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-11-11 23:38:09 +0800 |
commit | b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a (patch) | |
tree | c62673b5462240cacb8cbd144a654e811ba7bceb /core/qmpmidioutfluid.cpp | |
parent | 9f139f5807c3c18a77ebaa8e646355c19dca5ca9 (diff) | |
download | QMidiPlayer-b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a.tar.xz |
New UI hook "main.seek". Fix SysExc. message sending. API documentation update.
Simple visualization no longer have notes stuck after seeking.
System exclusive messages longer than 256 bytes are now sent correctly.
Diffstat (limited to 'core/qmpmidioutfluid.cpp')
-rw-r--r-- | core/qmpmidioutfluid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/qmpmidioutfluid.cpp b/core/qmpmidioutfluid.cpp index e9bc6b1..4fcdd21 100644 --- a/core/qmpmidioutfluid.cpp +++ b/core/qmpmidioutfluid.cpp @@ -69,10 +69,10 @@ void qmpMidiOutFluid::basicMessage(uint8_t type,uint8_t p1,uint8_t p2) break; } } -void qmpMidiOutFluid::extendedMessage(uint8_t length,const char *data) +void qmpMidiOutFluid::extendedMessage(uint32_t length,const char *data) { int rlen=0; - fluid_synth_sysex(synth,data,length,nullptr,&rlen,nullptr,0); + fluid_synth_sysex(synth,data,int(length),nullptr,&rlen,nullptr,0); } void qmpMidiOutFluid::rpnMessage(uint8_t ch,uint16_t type,uint16_t val) { |