Implemented a selection control in audio buffers (not working yet)

This commit is contained in:
2019-04-30 17:36:53 -05:00
parent 976e90f0a0
commit 194ca2d380
7 changed files with 43 additions and 17 deletions

View File

@@ -115,9 +115,14 @@ class vkSession(object):
log.debug("Creating config file %s" % (file_,))
self.settings = Configuration(os.path.join(paths.config_path(), file_), os.path.join(paths.app_path(), "session.defaults"))
self.soundplayer = sound.soundSystem(config.app["sound"])
pub.subscribe(self.play_sound, "play-sound")
# except:
# log.exception("The session configuration has failed.")
def play_sound(self, sound):
print(sound)
self.soundplayer.play(sound)
def login(self):
""" Logging in VK.com. This is basically the first method interacting with VK. """
# If user is already logged in, we should skip this method.