Fix some uninitialized values
Jeffrey Pfau jeffrey@endrift.com
Mon, 20 Jan 2014 14:32:13 -0800
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-audio.c
→
src/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;