master
q3k 2013-10-19 20:39:22 +02:00
parent 8066995da5
commit 1eaa9219ae
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ def logmesohard(name):
print("Playing {}".format(name))
class Sound:
class Sound(object):
def __init__(self, paths):
self.paths = paths
def create(self):
@ -48,7 +48,7 @@ class Sound:
class SimpleSound(Sound):
def __init__(self, path):
super(SimpleSound,self).__init__([path,])
super(SimpleSound, self).__init__([path,])
def play(self):
logmesohard(self.paths[0])
@ -68,7 +68,7 @@ class RandomSound(Sound):
class ListSound(Sound):
def __init__(self, paths):
self._state = self._getsound()
super().__init__(paths)
super(ListSound, self).__init__(paths)
def _getsound(self):
last_sound = None