Reload track after output swap for convenience
This commit is contained in:
parent
6e79af3bbd
commit
1d7ccaee12
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue