Specify array size: 12 semitones
This commit is contained in:
parent
2d624d66db
commit
5d694edb18
2 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ __umul3232H32:
|
||||||
thumb_func_start SoundMain
|
thumb_func_start SoundMain
|
||||||
SoundMain:
|
SoundMain:
|
||||||
ldr r0, lt_SOUND_INFO_PTR
|
ldr r0, lt_SOUND_INFO_PTR
|
||||||
ldr r0, [r0]
|
ldr r0, [r0] @ Set the SoundInfo pointer to sound area
|
||||||
ldr r2, lt_ID_NUMBER
|
ldr r2, lt_ID_NUMBER
|
||||||
ldr r3, [r0, #o_SoundInfo_ident]
|
ldr r3, [r0, #o_SoundInfo_ident]
|
||||||
cmp r2, r3
|
cmp r2, r3
|
||||||
|
|
|
@ -83,7 +83,7 @@ const u8 gScaleTable[] =
|
||||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B,
|
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B,
|
||||||
};
|
};
|
||||||
|
|
||||||
const u32 gFreqTable[] =
|
const u32 gFreqTable[12] =
|
||||||
{
|
{
|
||||||
2147483648u,
|
2147483648u,
|
||||||
2275179671u,
|
2275179671u,
|
||||||
|
@ -99,7 +99,7 @@ const u32 gFreqTable[] =
|
||||||
4053909305u,
|
4053909305u,
|
||||||
};
|
};
|
||||||
|
|
||||||
const u16 gPcmSamplesPerVBlankTable[] =
|
const u16 gPcmSamplesPerVBlankTable[12] =
|
||||||
{
|
{
|
||||||
96,
|
96,
|
||||||
132,
|
132,
|
||||||
|
@ -130,7 +130,7 @@ const u8 gCgbScaleTable[] =
|
||||||
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB,
|
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB,
|
||||||
};
|
};
|
||||||
|
|
||||||
const s16 gCgbFreqTable[] =
|
const s16 gCgbFreqTable[12] =
|
||||||
{
|
{
|
||||||
-2004,
|
-2004,
|
||||||
-1891,
|
-1891,
|
||||||
|
|
Loading…
Reference in a new issue