From 562ab419d7cba0b2cd8681711b9c179e11b6f4c2 Mon Sep 17 00:00:00 2001 From: Chrys Date: Wed, 19 May 2021 11:21:30 +0200 Subject: [PATCH] add debug --- src/fenrirscreenreader/core/soundDriver.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fenrirscreenreader/core/soundDriver.py b/src/fenrirscreenreader/core/soundDriver.py index 1c94ba1d..5427d559 100644 --- a/src/fenrirscreenreader/core/soundDriver.py +++ b/src/fenrirscreenreader/core/soundDriver.py @@ -19,19 +19,19 @@ class soundDriver(): if not self._initialized: return self.cancel() - self._isInitialized = False + self._isInitialized = False - def playFrequence(self, frequence = 1000, duration = 0.3, adjustVolume = 0): + def playFrequence(self, frequence, duration, adjustVolume = 0, interrupt=True): if not self._initialized: - return + return if interrupt: self.cancel() def playSoundFile(self, filePath, interrupt = True): if not self._initialized: - return + return if interrupt: - self.cancel() + self.cancel() def cancel(self): if not self._initialized: @@ -43,5 +43,5 @@ class soundDriver(): def setVolume(self, volume): if not self._initialized: - return + return self.volume = volume