summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.c
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-10-17 03:48:24 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-10-17 03:48:24 +0000
commitd33645ba137fc6566a953190dcf74c3841bc4d5d (patch)
treed35d56499d6e0331376055be863df3ce23d96370 /apps/plugins/midi/synth.c
parent1cc852c34655cd69cfc2d2fa42f31576121f86ed (diff)
downloadrockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.tar.gz
rockbox-d33645ba137fc6566a953190dcf74c3841bc4d5d.zip
MIDI: Optimize the new pitch bending code for a small speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15160 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/synth.c')
-rw-r--r--apps/plugins/midi/synth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index f0fa93d60e..9ec5580310 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -66,6 +66,8 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
66 chPat[a]=0; /* Ac Gr Piano */ 66 chPat[a]=0; /* Ac Gr Piano */
67 chPW[a]=256; /* .. not .. bent ? */ 67 chPW[a]=256; /* .. not .. bent ? */
68 chPBDepth[a]=2; /* Default bend value is 2 */ 68 chPBDepth[a]=2; /* Default bend value is 2 */
69 chPBNoteOffset[a]=0; /* No offset */
70 chPBFractBend[a]=65536; /* Center.. no bend */
69 } 71 }
70 for(a=0; a<128; a++) 72 for(a=0; a<128; a++)
71 { 73 {