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:
parent
2ac668e44c
commit
2afc175a4e
5 changed files with 12 additions and 13 deletions
|
|
@ -148,7 +148,7 @@ int readTwoBytes(int file);
|
|||
int readFourBytes(int file);
|
||||
int readVarData(int file);
|
||||
int eof(int fd);
|
||||
unsigned char * readData(int file, int len);
|
||||
void * readData(int file, int len);
|
||||
|
||||
#define malloc(n) my_malloc(n)
|
||||
void * my_malloc(int size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue