aboutsummaryrefslogtreecommitdiff
path: root/qmpmidiplay.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmpmidiplay.hpp')
-rw-r--r--qmpmidiplay.hpp5
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();