summaryrefslogtreecommitdiffstats
path: root/apps/plugins/midi/midiutil.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/midiutil.c
parentcc5b50b231f53b04d54567489970cdfa0a09e402 (diff)
downloadrockbox-e1940b87b005fdaba38e6230551291001f54e99b.tar.gz
rockbox-e1940b87b005fdaba38e6230551291001f54e99b.tar.bz2
rockbox-e1940b87b005fdaba38e6230551291001f54e99b.zip
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/midiutil.c')
-rw-r--r--apps/plugins/midi/midiutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c
index 7cb128fb84..aba56c5a8c 100644
--- a/apps/plugins/midi/midiutil.c
+++ b/apps/plugins/midi/midiutil.c
@@ -22,8 +22,7 @@
extern struct plugin_api * rb;
int chVol[16] IBSS_ATTR; /* Channel volume */
-int chPanLeft[16] IBSS_ATTR; /* Channel panning */
-int chPanRight[16] IBSS_ATTR;
+int chPan[16] IBSS_ATTR; /* Channel panning */
int chPat[16] IBSS_ATTR; /* Channel patch */
int chPW[16] IBSS_ATTR; /* Channel pitch wheel, MSB only */