aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidiplay.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-07 23:39:02 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-07 23:39:02 +0800
commit8f8782f43bd838e825f3792b611d27fffa90399b (patch)
tree1fbd96dd7ce061010edacf67f72f0ffb07889edf /core/qmpmidiplay.hpp
parent70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (diff)
downloadQMidiPlayer-8f8782f43bd838e825f3792b611d27fffa90399b.tar.xz
Lunatic Princess.
Diffstat (limited to 'core/qmpmidiplay.hpp')
-rw-r--r--core/qmpmidiplay.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/qmpmidiplay.hpp b/core/qmpmidiplay.hpp
index fafd677..a7e7f88 100644
--- a/core/qmpmidiplay.hpp
+++ b/core/qmpmidiplay.hpp
@@ -5,6 +5,7 @@
#include <cstdint>
#include <cstdlib>
#include <fluidsynth.h>
+#include "qmpmidimappers.hpp"
struct SEvent
{
uint32_t iid,time,p1,p2;
@@ -69,6 +70,8 @@ class CMidiPlayer
//thread control
uint32_t tceptr,tcpaused,tcstop;
uint32_t finished,resumed;
+ qmpMidiMapperRtMidi *mapper;
+ int mappedoutput[16],deviceusage[16],deviceiid[128];
void setBit(uint16_t &n,uint16_t bn,uint16_t b);
void processEvent(const SEvent *e);
@@ -133,5 +136,8 @@ class CMidiPlayer
void pushSoundFont(const char* sf);
int getSFCount();
fluid_sfont_t* getSFPtr(int sfid);
+
+ qmpMidiMapperRtMidi* getMidiMapper();
+ void setChannelOutput(int ch,int devid);
};
#endif