diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-04-11 10:48:50 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-04-11 10:48:50 +0000 |
| commit | 7c4b786851ec90364c0335b46d093fb6dba1af01 (patch) | |
| tree | 562892475a99808145cb6a35f4098cd2dc78ff15 /apps/plugins/midi/synth.c | |
| parent | 08e633c25c3f70d8d8b900cf09576986a398a474 (diff) | |
| download | rockbox-7c4b786851ec90364c0335b46d093fb6dba1af01.zip rockbox-7c4b786851ec90364c0335b46d093fb6dba1af01.tar.gz rockbox-7c4b786851ec90364c0335b46d093fb6dba1af01.tar.bz2 rockbox-7c4b786851ec90364c0335b46d093fb6dba1af01.tar.xz | |
Some quick and dirty MIDI player optimizations, now it works on the X5 and M5 too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13108 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/synth.c')
| -rw-r--r-- | apps/plugins/midi/synth.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index a3a3d60..5a7a02f 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -182,12 +182,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) return 0; } -inline short getSample(int s,struct GWaveform * wf ) -{ - /* Sign conversion moved to guspat.c */ - /* 8bit conversion NOT YET IMPLEMENTED in guspat.c */ - return ((short *) wf->data)[s]; -} +#define getSample(s,wf) ((short *)(wf)->data)[s] void setPoint(struct SynthObject * so, int pt) { @@ -254,6 +249,7 @@ inline void stopVoice(struct SynthObject * so) so->decay = 0; } +signed short int synthVoice(struct SynthObject * so) ICODE_ATTR; signed short int synthVoice(struct SynthObject * so) { struct GWaveform * wf; |