1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Linus Nielsen Feltzing 2007-04-11 10:48:50 +00:00
parent 08e633c25c
commit 7c4b786851
3 changed files with 11 additions and 14 deletions

View file

@ -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;