aboutsummaryrefslogtreecommitdiff
path: root/src-z80/core
diff options
context:
space:
mode:
authorSik2019-04-23 03:31:56 -0300
committerSik2019-04-23 03:31:56 -0300
commitc012f5f3767bb358b027535007b922b276c87f2e (patch)
tree465f00ed4bb772de9e99fdd53490b6e504900053 /src-z80/core
parentceb1b7c96cf546b033375787481ee66d64c08fc8 (diff)
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
Diffstat (limited to 'src-z80/core')
-rw-r--r--src-z80/core/bgm.z806
1 files changed, 3 insertions, 3 deletions
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