Reload track after output swap for convenience

This commit is contained in:
Matthew Stratford 2020-11-01 03:15:51 +00:00
parent 6e79af3bbd
commit 1d7ccaee12
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395

View file

@ -196,7 +196,6 @@ class Player():
def output(self, name=None):
self.quit()
self.state.update("output", name)
self.state.update("filename", "")
try:
if name:
mixer.init(44100, -16, 1, 1024, devicename=name)
@ -205,6 +204,7 @@ class Player():
except:
return False
self.load(self.state.state["filename"])
return True
def _updateState(self, pos=None):