Reinitialise audio output on every load, to fix silent channels.
This commit is contained in:
parent
0076ea9c24
commit
d6bf061c65
1 changed files with 5 additions and 1 deletions
|
@ -396,9 +396,13 @@ class Player:
|
|||
|
||||
def load(self, weight: int):
|
||||
if not self.isPlaying:
|
||||
loaded_state = self.state.get()
|
||||
self.unload()
|
||||
|
||||
showplan = self.state.get()["show_plan"]
|
||||
self.logger.log.info("Resetting output (in case of sound output gone silent somehow) to " + str(loaded_state["output"]))
|
||||
self.output(loaded_state["output"])
|
||||
|
||||
showplan = loaded_state["show_plan"]
|
||||
|
||||
loaded_item: Optional[PlanItem] = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue