From 07e59c6ca1510f8446ce5086e4e6e0e90651a516 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 20 Feb 2023 22:12:11 -0500 Subject: [PATCH] prevent sound by stopping the mixer in the launcher update method --- Playzing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Playzing.py b/Playzing.py index b7674e8..8ac8c13 100755 --- a/Playzing.py +++ b/Playzing.py @@ -132,6 +132,9 @@ class Playzing(pgfw.Game): def update(self): pgfw.Animation.update(self) + # Temporary fix: this stops audio when the game is quit and prevents spawning multiple BGM when game is relaunched + pygame.mixer.stop() + # Erase the center of the screen if enabled if not self.configuration.get("logo", "trail"): erase_rect = self.logo_text.location.copy()