all repos — mgba @ e432c66249987e6bb61b67fd446f8b757511a246

mGBA Game Boy Advance Emulator

Fix some uninitialized values
Jeffrey Pfau jeffrey@endrift.com
Mon, 20 Jan 2014 14:32:13 -0800
commit

e432c66249987e6bb61b67fd446f8b757511a246

parent

86bc662d9f61d8a643e8368fc99452b6767afe2c

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -25,14 +25,18 @@ audio->nextCh1 = 0;

audio->nextCh2 = 0; audio->nextCh3 = 0; audio->nextCh4 = 0; + audio->ch1.sweep.time = 0; audio->ch1.envelope.nextStep = INT_MAX; audio->ch1.control.nextStep = 0; + audio->ch1.control.endTime = 0; audio->ch1.nextSweep = INT_MAX; audio->ch1.sample = 0; audio->ch2.envelope.nextStep = INT_MAX; audio->ch2.control.nextStep = 0; + audio->ch2.control.endTime = 0; audio->ch2.sample = 0; audio->ch3.bank.packed = 0; + audio->ch3.control.endTime = 0; audio->ch3.sample = 0; audio->ch4.sample = 0; audio->ch4.envelope.nextStep = INT_MAX;