forked from len0rd/rockbox
Fix midi playback on 64 bit sims and const a table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14842 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0e49605aaa
commit
ff7b3c5e4e
2 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ struct MIDIfile * mf IBSS_ATTR;
|
||||||
int numberOfSamples IBSS_ATTR;
|
int numberOfSamples IBSS_ATTR;
|
||||||
long bpm IBSS_ATTR;
|
long bpm IBSS_ATTR;
|
||||||
|
|
||||||
long gmbuf[BUF_SIZE*NBUF];
|
int32_t gmbuf[BUF_SIZE*NBUF];
|
||||||
|
|
||||||
int quit=0;
|
int quit=0;
|
||||||
struct plugin_api * rb;
|
struct plugin_api * rb;
|
||||||
|
|
@ -147,7 +147,7 @@ bool lastswap=1;
|
||||||
|
|
||||||
inline void synthbuf(void)
|
inline void synthbuf(void)
|
||||||
{
|
{
|
||||||
long *outptr;
|
int32_t *outptr;
|
||||||
register int i;
|
register int i;
|
||||||
static int currentSample=0;
|
static int currentSample=0;
|
||||||
int synthtemp[2];
|
int synthtemp[2];
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ long pitchTbl[]=
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
long pitchTbl[] ICONST_ATTR={
|
const long pitchTbl[] ICONST_ATTR={
|
||||||
58386,58412,58439,58465,58491,58518,58544,58571,58597,58624,58650,58676,
|
58386,58412,58439,58465,58491,58518,58544,58571,58597,58624,58650,58676,
|
||||||
58703,58729,58756,58782,58809,58836,58862,58889,58915,58942,58968,58995,
|
58703,58729,58756,58782,58809,58836,58862,58889,58915,58942,58968,58995,
|
||||||
59022,59048,59075,59102,59128,59155,59182,59208,59235,59262,59289,59315,
|
59022,59048,59075,59102,59128,59155,59182,59208,59235,59262,59289,59315,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue