aboutsummaryrefslogtreecommitdiff
path: root/qmpmidiplay.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-30 23:45:12 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-30 23:45:12 +0800
commitb1be9e45b5abdf0a03181b9cee8dc208a762fe57 (patch)
tree1af8db6a9776af748c1d14e330a30ce61e162bea /qmpmidiplay.cpp
parent8dc90ae27c24aec1851215f2cc28ee24eff01ea5 (diff)
downloadQMidiPlayer-b1be9e45b5abdf0a03181b9cee8dc208a762fe57.tar.xz
Complete Darkness. (WTF)
Diffstat (limited to 'qmpmidiplay.cpp')
-rw-r--r--qmpmidiplay.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/qmpmidiplay.cpp b/qmpmidiplay.cpp
index 112b8e9..e9014d0 100644
--- a/qmpmidiplay.cpp
+++ b/qmpmidiplay.cpp
@@ -230,13 +230,13 @@ void CMidiPlayer::setChannelPreset(int ch,int b,int p)
void CMidiPlayer::setBit(uint16_t &n, uint16_t bn, uint16_t b)
{n^=(-b^n)&(1<<bn);}
void CMidiPlayer::setMute(int ch,bool m)
-{
- setBit(mute,ch,m?1:0);
-}
+{setBit(mute,ch,m?1:0);}
void CMidiPlayer::setSolo(int ch,bool s)
-{
- setBit(solo,ch,s?1:0);
-}
+{setBit(solo,ch,s?1:0);}
+int CMidiPlayer::getCC(int ch, int id)
+{int ret=0;synth?fluid_synth_get_cc(synth,ch,id,&ret):0;return ret;}
+void CMidiPlayer::setCC(int ch, int id, int val)
+{synth?fluid_synth_cc(synth,ch,id,val):0;}
int CMidiPlayer::getSFCount()
{return synth?fluid_synth_sfcount(synth):0;}
fluid_sfont_t* CMidiPlayer::getSFPtr(int sfid)