From a47c2529b087acf8b9f9946a69a8dfe7c6a34630 Mon Sep 17 00:00:00 2001 From: Chrys Date: Wed, 19 May 2021 11:20:43 +0200 Subject: [PATCH] add debug --- src/fenrirscreenreader/soundDriver/debugDriver.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/soundDriver/debugDriver.py b/src/fenrirscreenreader/soundDriver/debugDriver.py index 33c17481..56c95a70 100644 --- a/src/fenrirscreenreader/soundDriver/debugDriver.py +++ b/src/fenrirscreenreader/soundDriver/debugDriver.py @@ -14,22 +14,22 @@ class driver(soundDriver): def initialize(self, environment): self.env = environment self._initialized = True - print('Sound Debug Driver: Initialized') + print('Sound Debug Driver: Initialized') def shutdown(self): if not self._initialized: return self.cancel() - self._initialized = False + self._initialized = False print('Sound Debug Driver: Shutdown') - def playFrequence(self, frequence = 1000, duration = 0.3, adjustVolume = 0): + def playFrequence(self, frequence, duration, adjustVolume = 0, interrupt=True): if not self._initialized: return if interrupt: self.cancel() print('Sound Debug Driver: playFrequence:' + ' freq:' + str(frequence) + ' duration:' + str(duration) + ' adjustVolume:' + str(adjustVolume) ) - print('Sound Debug Driver: -----------------------------------') + print('Sound Debug Driver: -----------------------------------') def playSoundFile(self, filePath, interrupt = True): if not self._initialized: @@ -37,7 +37,7 @@ class driver(soundDriver): if interrupt: self.cancel() print('Sound Debug Driver: playSoundFile:' + str(filePath)) - print('Sound Debug Driver: -----------------------------------') + print('Sound Debug Driver: -----------------------------------') def cancel(self): if not self._initialized: