diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-14 21:47:06 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-14 21:47:06 +0800 |
commit | 1e1036e705b20ea407bbb922e40c0f44147b3691 (patch) | |
tree | fe0d5560c3c44be62de50b8e433b81da0a135f70 /qmpmidiplay.hpp | |
parent | fab7ae34311b9bbb001c98baafa4b1a99aa3c18f (diff) | |
download | QMidiPlayer-1e1036e705b20ea407bbb922e40c0f44147b3691.tar.xz |
Innocent Treasure. (WTF)
Diffstat (limited to 'qmpmidiplay.hpp')
-rw-r--r-- | qmpmidiplay.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |