diff --git a/src/fenrir/soundDriver/generic.py b/src/fenrir/soundDriver/generic.py index ebbe1dc7..fa39a6fc 100644 --- a/src/fenrir/soundDriver/generic.py +++ b/src/fenrir/soundDriver/generic.py @@ -21,12 +21,12 @@ class driver(): if self.soundFileCommand == '': self.soundFileCommand = 'play -q -v fenrirVolume fenrirSoundFile' if self.frequenceCommand == '': - self.frequenceCommand = '=play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence' + self.frequenceCommand = 'play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence' return def shutdown(self): self.cancel() return - def playFrequence(self, frequence, duration, adjustVolume): + def playFrequence(self, frequence = 1000, duration = 0.3, adjustVolume = 0): if interrupt: self.cancel() popenFrequenceCommand = self.frequenceCommand.replace('fenrirVolume', str(self.volume + adjustVolume ))