From d97a417012d7e510b08c2e7d9a71997605c48e88 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 1 Jun 2016 23:02:21 +0800 Subject: Initial event modifier and event filter stub. --- core/qmpmidiplay.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/qmpmidiplay.hpp') diff --git a/core/qmpmidiplay.hpp b/core/qmpmidiplay.hpp index f922940..6436192 100644 --- a/core/qmpmidiplay.hpp +++ b/core/qmpmidiplay.hpp @@ -29,7 +29,7 @@ class CMidiFile uint32_t std;//standard 0=? 1=GM 2=GM2 3=GS 4=XG uint32_t fmt,trk,divs; FILE *f; - int byteread,valid; + int byteread,valid,eventdiscarded; uint32_t notes,curt,curid; IMidiCallBack* eventReaderCB[16]; void* eventReaderCBuserdata[16]; @@ -54,6 +54,8 @@ class CMidiFile const char* getTitle(); const char* getCopyright(); bool isValid(); + void discardLastEvent(); + void commitEventChange(SEventCallBackData d); }; class CMidiPlayer { @@ -161,5 +163,8 @@ class CMidiPlayer void unsetEventHandlerCB(int id); int setEventReaderCB(IMidiCallBack *cb,void *userdata); void unsetEventReaderCB(int id); + + void discardLastEvent(); + void commitEventChange(SEventCallBackData d); }; #endif -- cgit v1.2.3