aboutsummaryrefslogtreecommitdiff
path: root/qmpmidiplay.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-28 22:02:45 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-28 22:02:45 +0800
commit40ea6580aaf3d19aa77f43551185a55013d216d9 (patch)
tree3ac49b1fbe75e22664b57e796ba47a2b55e35b59 /qmpmidiplay.hpp
parenta17d580f623dfc3a6eb33c540203798d6200a5fc (diff)
downloadQMidiPlayer-40ea6580aaf3d19aa77f43551185a55013d216d9.tar.xz
Last Remote.(WTF)
Diffstat (limited to 'qmpmidiplay.hpp')
-rw-r--r--qmpmidiplay.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/qmpmidiplay.hpp b/qmpmidiplay.hpp
index f32e215..d5f0c54 100644
--- a/qmpmidiplay.hpp
+++ b/qmpmidiplay.hpp
@@ -48,6 +48,8 @@ class CMidiPlayer
private:
CMidiFile *midiFile;
uint32_t stamps[101];
+ uint32_t ccstamps[101][16][132],ccc[16][132];//0..127:cc 128:pc 129:cp 130:pb 131:tempo
+ uint16_t mute,solo;
double ftime;
fluid_settings_t* settings;
fluid_synth_t* synth;
@@ -57,6 +59,7 @@ class CMidiPlayer
uint32_t tceptr,tcpaused,tcstop;
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);
@@ -74,7 +77,7 @@ class CMidiPlayer
uint32_t getStamp(int id);
uint32_t getTCeptr();
- void setTCeptr(uint32_t ep);
+ void setTCeptr(uint32_t ep,uint32_t st);
uint32_t getTCpaused();
void setTCpaused(uint32_t ps);
double getFtime();
@@ -85,5 +88,9 @@ class CMidiPlayer
int getPolyphone();
int getMaxPolyphone();
void setMaxPolyphone(int p);
+
+ void getChannelPreset(int ch,int *b,int *p,char *name);
+ void setMute(int ch,bool m);
+ void setSolo(int ch,bool s);
};
#endif