From 515bcb13ca12aad81025fdf0c4608ce2eec71011 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Mon, 17 Jul 2023 01:21:33 +0100 Subject: [PATCH] Reset the volume each time a new sound is played --- tracker/agb-tracker/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tracker/agb-tracker/src/lib.rs b/tracker/agb-tracker/src/lib.rs index 983889e2..69bd6b37 100644 --- a/tracker/agb-tracker/src/lib.rs +++ b/tracker/agb-tracker/src/lib.rs @@ -144,7 +144,8 @@ impl TrackerChannel { .restart_point(sample.restart_point); } - self.channel_id = mixer.play_sound(new_channel) + self.channel_id = mixer.play_sound(new_channel); + self.volume = 1.into(); } fn apply_effect(