From b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 11 Nov 2019 23:38:09 +0800 Subject: 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. --- core/qmpmidiplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/qmpmidiplay.cpp') diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp index 2992e06..89fdf84 100644 --- a/core/qmpmidiplay.cpp +++ b/core/qmpmidiplay.cpp @@ -93,7 +93,7 @@ bool CMidiPlayer::processEvent(const SEvent *e) if(((e->type&0x0F)==0x00||(e->type&0x0F)==07)&&sendSysEx) for(auto& i:mididev) if(i.refcnt) - i.dev->extendedMessage(e->p1,e->str.c_str()); + i.dev->extendedMessage(uint32_t(e->str.length()),e->str.c_str()); return false; } return false; -- cgit v1.2.3