all repos — mgba @ c2490afe4f5e7c3c7ab8eb112935e097945e7ae6

mGBA Game Boy Advance Emulator

GB Audio: Fix initialization
Vicki Pfau vi@endrift.com
Thu, 28 Jun 2018 11:53:35 -0700
commit

c2490afe4f5e7c3c7ab8eb112935e097945e7ae6

parent

9983cb87c93790d1383cc432b5074759b12aec44

1 files changed, 2 insertions(+), 11 deletions(-)

jump to
M src/gb/audio.csrc/gb/audio.c

@@ -143,22 +143,13 @@ audio->lastRight = 0;

audio->capLeft = 0; audio->capRight = 0; audio->clock = 0; - audio->volumeRight = 0; - audio->volumeLeft = 0; - audio->ch1Right = false; - audio->ch2Right = false; - audio->ch3Right = false; - audio->ch4Right = false; - audio->ch1Left = false; - audio->ch2Left = false; - audio->ch3Left = false; - audio->ch4Left = false; audio->playingCh1 = false; audio->playingCh2 = false; audio->playingCh3 = false; audio->playingCh4 = false; - if (audio->p && (audio->p->model == GB_MODEL_DMG || audio->p->model == GB_MODEL_CGB)) { + if (audio->p && audio->p->model != GB_MODEL_SGB) { audio->playingCh1 = true; + audio->enable = true; *audio->nr52 |= 0x01; } }