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

@ -8,7 +8,7 @@
from core import debug from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self):
pass pass
def initialize(self, environment): def initialize(self, environment):
self._isInitialized = False self._isInitialized = False
@ -54,6 +54,7 @@ class driver():
def setModule(self, module): def setModule(self, module):
if not self._isInitialized: if not self._isInitialized:
return False return False
return True
def setLanguage(self, language): def setLanguage(self, language):
if not self._isInitialized: if not self._isInitialized:

View File

@ -8,7 +8,7 @@
from core import debug from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self):
self._es = None self._es = None
self._isInitialized = False self._isInitialized = False

View File

@ -8,7 +8,7 @@
from core import debug from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self):
self._sd = None self._sd = None
self._isInitialized = False self._isInitialized = False
self._language = '' self._language = ''