aboutsummaryrefslogtreecommitdiff
path: root/src-z80
diff options
context:
space:
mode:
authorSik2018-10-09 13:47:50 -0300
committerSik2018-10-09 13:47:50 -0300
commit46ce4f706ea47d16db70018baedd5eb6c691ef95 (patch)
tree6178be71b27a3b35bd742e3ef320d8b7e1cd485f /src-z80
parent3d28d692e233bd0b58125e7c61120b0c2dbf8d9c (diff)
Fixed bug where pausing and unpausing would make FM1 quieter over time
Diffstat (limited to 'src-z80')
-rw-r--r--src-z80/core/bgm.z804
-rw-r--r--src-z80/player/misc.z803
-rw-r--r--src-z80/player/psg.z801
3 files changed, 6 insertions, 2 deletions
diff --git a/src-z80/core/bgm.z80 b/src-z80/core/bgm.z80
index c043616..cb8439a 100644
--- a/src-z80/core/bgm.z80
+++ b/src-z80/core/bgm.z80
@@ -332,7 +332,9 @@ ClearBGM:
.killpsg:
PollPCM
- ld (hl), $00 ; Reset BGM volume
+ ld a, $0F
+ ld (de), a ; Reset BGM volume
+ ;ld (hl), 0
ld a, e
sub 15
diff --git a/src-z80/player/misc.z80 b/src-z80/player/misc.z80
index 56e11b4..fa823ab 100644
--- a/src-z80/player/misc.z80
+++ b/src-z80/player/misc.z80
@@ -119,7 +119,8 @@ RefreshVolume:
.fixfmvolok:
ld b, a
ld a, l
- call SetFMVolLoad
+ and $07
+ call SetFMVolTempLoad
inc l
inc e
dec c
diff --git a/src-z80/player/psg.z80 b/src-z80/player/psg.z80
index 892931a..9150855 100644
--- a/src-z80/player/psg.z80
+++ b/src-z80/player/psg.z80
@@ -564,6 +564,7 @@ LoadPSGBGM:
PollPCM
+ xor a
ld (hl), a ; Reset volume for BGM
dec l