aboutsummaryrefslogtreecommitdiff
path: root/qmpmidiplay.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-02 23:57:36 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-02 23:57:36 +0800
commitb886aa1fcafc16fe93bfe19e2f63b4089234f9f6 (patch)
tree929ed0c3fc60b4e9fce421718c21062059c2cbd9 /qmpmidiplay.hpp
parentd418712c981d9854fa6429d65773368ca63b8dac (diff)
downloadQMidiPlayer-b886aa1fcafc16fe93bfe19e2f63b4089234f9f6.tar.xz
Mystic Flier. (WTF)
Diffstat (limited to 'qmpmidiplay.hpp')
-rw-r--r--qmpmidiplay.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/qmpmidiplay.hpp b/qmpmidiplay.hpp
index 88aa097..7937c21 100644
--- a/qmpmidiplay.hpp
+++ b/qmpmidiplay.hpp
@@ -23,7 +23,7 @@ class CMidiFile
private:
SEvent *eventList[10000000];
char *title,*copyright;
- uint32_t eventc;
+ uint32_t eventc,std;//standard 0=? 1=GM 2=GM2 3=GS 4=XG
uint32_t fmt,trk,divs;
FILE *f;
int byteread;
@@ -44,6 +44,7 @@ class CMidiFile
uint32_t getEventCount();
uint32_t getDivision();
uint32_t getNoteCount();
+ uint32_t getStandard();
const char* getTitle();
const char* getCopyright();
};
@@ -65,7 +66,6 @@ class CMidiPlayer
uint32_t finished,resumed;
void setBit(uint16_t &n,uint16_t bn,uint16_t b);
- void fluidInitialize(const char* sf);
void fluidDeinitialize();
void processEvent(const SEvent *e);
void processEventStub(const SEvent *e);
@@ -74,8 +74,10 @@ class CMidiPlayer
void fileTimer2Pass();
public:
CMidiPlayer();
+ ~CMidiPlayer();
void playerLoadFile(const char* fn);
void playerInit();
+ void fluidInitialize();
void playerDeinit();
void playerThread();
void playerPanic();
@@ -93,6 +95,7 @@ class CMidiPlayer
void getCurrentTimeSignature(int *n,int *d);
void getCurrentKeySignature(int *ks);
uint32_t getFileNoteCount();
+ uint32_t getFileStandard();
double getTempo();
const char* getTitle();
const char* getCopyright();
@@ -113,7 +116,8 @@ class CMidiPlayer
void getChorusPara(int *fb,double *l,double *r,double *d,int *type);
void setChorusPara(int e,int fb,double l,double r,double d,int type);
- //void pushSoundFont(const char* url);
+ fluid_settings_t* getFluidSettings();
+ void pushSoundFont(const char* sf);
int getSFCount();
fluid_sfont_t* getSFPtr(int sfid);
};