From 1e1036e705b20ea407bbb922e40c0f44147b3691 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 14 Jan 2016 21:47:06 +0800 Subject: Innocent Treasure. (WTF) --- qmpmidiplay.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qmpmidiplay.hpp') diff --git a/qmpmidiplay.hpp b/qmpmidiplay.hpp index dc09393..188a796 100644 --- a/qmpmidiplay.hpp +++ b/qmpmidiplay.hpp @@ -26,7 +26,7 @@ class CMidiFile uint32_t eventc,std;//standard 0=? 1=GM 2=GM2 3=GS 4=XG uint32_t fmt,trk,divs; FILE *f; - int byteread; + int byteread,valid; uint32_t notes,curt,curid; void error(int fatal,const char* format,...); @@ -47,6 +47,7 @@ class CMidiFile uint32_t getStandard(); const char* getTitle(); const char* getCopyright(); + bool isValid(); }; class CMidiPlayer { @@ -78,7 +79,7 @@ class CMidiPlayer public: CMidiPlayer(); ~CMidiPlayer(); - void playerLoadFile(const char* fn); + bool playerLoadFile(const char* fn); void playerInit(); void fluidInitialize(); void playerDeinit(); -- cgit v1.2.3