add new "random" mic noise which needed updating since the code which returns samples to the game software was corrected
This commit is contained in:
parent
32246bac4a
commit
676c90a0f0
|
@ -168,9 +168,12 @@ void Mic_DeInit()
|
||||||
waveInClose(waveIn);
|
waveInClose(waveIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const int random[32] = {0xB1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE9, 0x70,
|
static const u8 random[32] =
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x28, 0x00, 0x00, 0x00,
|
{
|
||||||
0x00, 0x00, 0x20, 0xE1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE9};
|
0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF5, 0xFF, 0xFF, 0xFF, 0xFF, 0x8E, 0xFF,
|
||||||
|
0xF4, 0xE1, 0xBF, 0x9A, 0x71, 0x58, 0x5B, 0x5F, 0x62, 0xC2, 0x25, 0x05, 0x01, 0x01, 0x01, 0x01,
|
||||||
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
u8 Mic_ReadSample()
|
u8 Mic_ReadSample()
|
||||||
|
@ -195,7 +198,6 @@ u8 Mic_ReadSample()
|
||||||
} else {
|
} else {
|
||||||
//use the "random" values
|
//use the "random" values
|
||||||
tmp = random[micReadSamplePos >> 1];
|
tmp = random[micReadSamplePos >> 1];
|
||||||
//tmp = rand()&0xFF;
|
|
||||||
micReadSamplePos++;
|
micReadSamplePos++;
|
||||||
if(micReadSamplePos == ARRAY_SIZE(random)*2)
|
if(micReadSamplePos == ARRAY_SIZE(random)*2)
|
||||||
micReadSamplePos=0;
|
micReadSamplePos=0;
|
||||||
|
|
Loading…
Reference in New Issue