summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-09-30 11:21:25 +0000
committerNils Wallménius <nils@rockbox.org>2007-09-30 11:21:25 +0000
commit6386dbe861bc3395dff1bca5b98e8cbe33ddc703 (patch)
tree0ab9bd6c105cac6ec0a77673fb2b60badd756302 /apps/plugins/midi/synth.c
parente108964ec08f70a46e1db430288283d68a906c56 (diff)
downloadrockbox-6386dbe861bc3395dff1bca5b98e8cbe33ddc703.tar.gz
rockbox-6386dbe861bc3395dff1bca5b98e8cbe33ddc703.zip
static/inline/iram raid gives nice speedup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14915 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/synth.c')
-rw-r--r--apps/plugins/midi/synth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index 44d42c0c78..4936afb655 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -191,6 +191,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig)
191 191
192#define getSample(s,wf) ((short *)(wf)->data)[s] 192#define getSample(s,wf) ((short *)(wf)->data)[s]
193 193
194void setPoint(struct SynthObject * so, int pt) ICODE_ATTR;
194void setPoint(struct SynthObject * so, int pt) 195void setPoint(struct SynthObject * so, int pt)
195{ 196{
196 if(so->ch==9) /* Drums, no ADSR */ 197 if(so->ch==9) /* Drums, no ADSR */
@@ -247,7 +248,6 @@ void setPoint(struct SynthObject * so, int pt)
247 so->curOffset = 0; 248 so->curOffset = 0;
248} 249}
249 250
250
251inline void stopVoice(struct SynthObject * so) 251inline void stopVoice(struct SynthObject * so)
252{ 252{
253 if(so->state == STATE_RAMPDOWN) 253 if(so->state == STATE_RAMPDOWN)