From c012f5f3767bb358b027535007b922b276c87f2e Mon Sep 17 00:00:00 2001 From: Sik Date: Tue, 23 Apr 2019 03:31:56 -0300 Subject: Well, that had backfired (and turned out that load instrument events reset the volume anyway), this seems to fix the channel unlock issues for real tho --- src-z80/core/bgm.z80 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-z80') diff --git a/src-z80/core/bgm.z80 b/src-z80/core/bgm.z80 index ddb9f74..595e9ec 100644 --- a/src-z80/core/bgm.z80 +++ b/src-z80/core/bgm.z80 @@ -45,9 +45,9 @@ PlayBGM: ld hl, ProcessBGM ; Tell Echo to process BGM ld (DoTick_BGM+1), hl - ld b, 8 ; Force BGM volume of all FM channels to $00 - ld c, 0 ; (default value for older Echo versions) - ld hl, RAM_BGMFMVol + ld b, 8 ; Force BGM volume of all FM channels to $7F + ld c, $7F ; (so trying to unlock an unused channel + ld hl, RAM_BGMFMVol ; doesn't result in audible garbage) .playunmute: ld (hl), c inc l -- cgit v1.2.3