summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/sequencer.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-10-04 19:36:42 +0000
committerNils Wallménius <nils@rockbox.org>2007-10-04 19:36:42 +0000
commite1940b87b005fdaba38e6230551291001f54e99b (patch)
treed8de240d30e2e497c5822127c20ca4d2b754f437 /apps/plugins/midi/sequencer.c
parentcc5b50b231f53b04d54567489970cdfa0a09e402 (diff)
Optimisation of the midi player, reducing the number of multiplications and memory accesses inside a very frequently executed loop, also does shifting of the whole sample when synthing is done which improves accurracy slightly, ~10% fewer buffer misses
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/sequencer.c')
-rw-r--r--apps/plugins/midi/sequencer.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c
index 82da3efbcf..1a00c078c6 100644
--- a/apps/plugins/midi/sequencer.c
+++ b/apps/plugins/midi/sequencer.c
@@ -46,15 +46,6 @@ static inline void setVol(int ch, int vol)
setVolScale(a);
}
-static inline void setPan(int ch, int pan)
-{
-// printf("\npanning[%d] %d ==> %d", ch, chPanRight[ch], pan);
-
- chPanLeft[ch]=128-pan;
- chPanRight[ch]=pan;
-}
-
-
static inline void setPatch(int ch, int pat)
{
chPat[ch]=pat;
@@ -286,7 +277,7 @@ static void sendEvent(struct Event * ev)
}
case CTRL_PANNING:
{
- setPan((status_low), d2);
+ chPan[status_low]=d2;
return;
}
}