1
0
Fork 0
forked from len0rd/rockbox

midi: make the patch sample data pointer a *int16_t to get rid of some ugly casting and drop an acessor macro to make caching the pointer in the synthVoice loop possible. Speeds up midi by 1-2% on cf and 3-5% on PP.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30438 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2011-09-06 10:34:20 +00:00
parent 2ac668e44c
commit 2afc175a4e
5 changed files with 12 additions and 13 deletions

View file

@ -114,9 +114,9 @@ unsigned char readChar(int file)
return buf[0];
}
unsigned char * readData(int file, int len)
void * readData(int file, int len)
{
unsigned char * dat = malloc(len);
void * dat = malloc(len);
rb->read(file, dat, len);
return dat;
}