Merge branch 'master' into wordWrappingEndOfScreenBell

This commit is contained in:
chrys 2016-12-06 23:06:05 +01:00
commit c39396b181
4 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,27 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class driver():
def __init__(self):
self.volume = None
def initialize(self, environment):
self.env = environment
def shutdown(self):
self.cancel()
def playFrequence(self, frequence = 1000, duration = 0.3, adjustVolume = 0):
if interrupt:
self.cancel()
def playSoundFile(self, filePath, interrupt = True):
if interrupt:
self.cancel()
def cancel(self):
pass
def setCallback(self, callback):
pass
def setVolume(self, volume):
self.volume = volume

View File

@ -54,6 +54,7 @@ class driver():
def setModule(self, module):
if not self._isInitialized:
return False
return True
def setLanguage(self, language):
if not self._isInitialized: