Fix fudge-ups when replacing emitter/ws with bus
A couple of instances in the mpg123 audio backend didn't contain 'self.', this resolves those allowing the backend to be used again.
@@ -76,14 +76,14 @@ class Mpg123Service(AudioBackend):
self.index += 1
# if there are more tracks available play next
if self.index < len(self.tracks):
- bus.emit(Message('Mpg123ServicePlay'))
+ self.bus.emit(Message('Mpg123ServicePlay'))
else:
self._is_playing = False
def play(self):
LOG.info('Call Mpg123ServicePlay')
self.index = 0
- bus.emit(Message('Mpg123ServicePlay'))
+ self.bus.emit(Message('Mpg123ServicePlay'))
def stop(self):
LOG.info('Mpg123ServiceStop')
