forked from len0rd/rockbox
duke3d: rewrite sound mixing to use fixed-point
Gives significant performance improvement on ipod6g. Change-Id: I1e8462bec197acb10e770c796240b5001df52440
This commit is contained in:
parent
78db1d9502
commit
9f6ce046cb
10 changed files with 476 additions and 449 deletions
|
|
@ -32,18 +32,6 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|||
#include "global.h"
|
||||
#include "duke3d.h"
|
||||
|
||||
uint16_t readLE16(void *addr)
|
||||
{
|
||||
uint8_t *ptr = addr;
|
||||
return (*(ptr+1) << 8) | *ptr;
|
||||
}
|
||||
|
||||
uint32_t readLE32(void *addr)
|
||||
{
|
||||
uint8_t *ptr = addr;
|
||||
return (*(ptr+3) << 24) |(*(ptr+2) << 16) | (*(ptr+1) << 8) | *ptr;
|
||||
}
|
||||
|
||||
char *mymembuf;
|
||||
uint8_t MusicPtr[72000];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue