diff options
Diffstat (limited to 'player_mock.py')
-rw-r--r-- | player_mock.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/player_mock.py b/player_mock.py index 92da675..2fd343f 100644 --- a/player_mock.py +++ b/player_mock.py @@ -10,6 +10,7 @@ class Player(): self.volume = 1.0 self.currentSong = None self.playingStateChangedCallback = None + self.playbackVolumeChangedCallback = None def play(self): previousState = self.state @@ -58,3 +59,9 @@ class Player(): def simulatePlayingStateChanged(self): self.playingStateChangedCallback() + + def setPlaybackVolumeChangedCallback(self, callback): + self.playbackVolumeChangedCallback = callback + + def simulatePlaybackVolumeChanged(self): + self.playbackVolumeChangedCallback() |