def openOutput(self): """Called when playing starts. Ensures an output port is opened.""" self._outputCloseTimer.stop() if not self._player.output(): p = QSettings().value("midi/player/output_port", midihub.default_output()) o = midihub.output_by_name(p) if o: self._player.set_output(output.Output(o))
def openOutput(self): """Called when playing starts. Ensures an output port is opened.""" self._outputCloseTimer.stop() if not self._player.output(): p = QSettings().value("midi/player/output_port", midihub.default_output(), str) o = midihub.output_by_name(p) if o: self._player.set_output(output.Output(o))