mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Initialize wave RAM to GBC values
This commit is contained in:
parent
8ac6f83bc5
commit
974c41e8cf
1
CHANGES
1
CHANGES
|
@ -59,6 +59,7 @@ Misc:
|
|||
- 3DS, PSP2, Wii: Last directory loaded is saved
|
||||
- GB Audio: Simplify envelope code
|
||||
- GB Audio: Improve initial envelope samples
|
||||
- GB Audio: Initialize wave RAM to GBC values
|
||||
|
||||
0.5.1: (2016-10-05)
|
||||
Bugfixes:
|
||||
|
|
|
@ -73,6 +73,23 @@ void GBAudioReset(struct GBAudio* audio) {
|
|||
audio->ch1 = (struct GBAudioSquareChannel) { .envelope = { .dead = 2 } };
|
||||
audio->ch2 = (struct GBAudioSquareChannel) { .envelope = { .dead = 2 } };
|
||||
audio->ch3 = (struct GBAudioWaveChannel) { .bank = 0 };
|
||||
// TODO: DMG randomness
|
||||
audio->ch3.wavedata8[0] = 0x00;
|
||||
audio->ch3.wavedata8[1] = 0xFF;
|
||||
audio->ch3.wavedata8[2] = 0x00;
|
||||
audio->ch3.wavedata8[3] = 0xFF;
|
||||
audio->ch3.wavedata8[4] = 0x00;
|
||||
audio->ch3.wavedata8[5] = 0xFF;
|
||||
audio->ch3.wavedata8[6] = 0x00;
|
||||
audio->ch3.wavedata8[7] = 0xFF;
|
||||
audio->ch3.wavedata8[8] = 0x00;
|
||||
audio->ch3.wavedata8[9] = 0xFF;
|
||||
audio->ch3.wavedata8[10] = 0x00;
|
||||
audio->ch3.wavedata8[11] = 0xFF;
|
||||
audio->ch3.wavedata8[12] = 0x00;
|
||||
audio->ch3.wavedata8[13] = 0xFF;
|
||||
audio->ch3.wavedata8[14] = 0x00;
|
||||
audio->ch3.wavedata8[15] = 0xFF;
|
||||
audio->ch4 = (struct GBAudioNoiseChannel) { .envelope = { .dead = 2 } };
|
||||
audio->eventDiff = 0;
|
||||
audio->nextFrame = 0;
|
||||
|
|
Loading…
Reference in New Issue