From 2108b2d2abb2190b931d6f446a03ddcae1aaacf7 Mon Sep 17 00:00:00 2001 From: Mauricio Date: Fri, 12 Mar 2021 20:45:04 -0400 Subject: [PATCH] fallback on unavailable blip --- gameview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gameview.py b/gameview.py index 4484f13..5dba48e 100644 --- a/gameview.py +++ b/gameview.py @@ -2096,6 +2096,8 @@ class gui(QtGui.QWidget): self.blipsnd = BASS_StreamCreateFile(False, AOpath+"sounds/blips/"+self.blip+".wav", 0, 0, 0) elif exists(AOpath+"sounds/blips/"+self.blip+".opus"): self.blipsnd = BASS_StreamCreateFile(False, AOpath+"sounds/blips/"+self.blip+".opus", 0, 0, 0) + else: + self.blipsnd = 0 BASS_ChannelSetAttribute(self.blipsnd, BASS_ATTRIB_VOL, self.blipslider.value() / 100.0)