aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidiplay.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-06-01 23:02:21 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-06-01 23:02:21 +0800
commitd97a417012d7e510b08c2e7d9a71997605c48e88 (patch)
treef13402745af921be0d791c5a10f9ad8fda78ef72 /core/qmpmidiplay.hpp
parentc6f549a963ece1ed757793540d42d50111c19a80 (diff)
downloadQMidiPlayer-d97a417012d7e510b08c2e7d9a71997605c48e88.tar.xz
Initial event modifier and event filter stub.
Diffstat (limited to 'core/qmpmidiplay.hpp')
-rw-r--r--core/qmpmidiplay.hpp7
1 files changed, 6 insertions, 1 deletions
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