aboutsummaryrefslogtreecommitdiffstats
path: root/player_mock.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-04 14:05:24 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-04 14:05:24 +0100
commit88d34ded021ac61e2440720fd3deb2cf3eef21e4 (patch)
treebbd56cf7361f8a4b5dccc21f71c0baba48d5c85a /player_mock.py
parentc75f1ef702b1a3b5cdbbe7f1a87e0f0fbfa80e39 (diff)
Added playback volume notification to player mock
Diffstat (limited to 'player_mock.py')
-rw-r--r--player_mock.py7
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()