mirror of
https://github.com/norohind/AudioControl.git
synced 2026-10-22 21:32:09 +03:00
Send VolumeChanged right after NewSession (as it allows a client to show correct volume position immediately)
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -103,8 +103,8 @@ class AudioController:
|
||||
# Notifying
|
||||
pid = new_session.ProcessId
|
||||
self.outbound_q.put(Events.NewSession(pid))
|
||||
self.outbound_q.put(Events.SetName(pid, get_app_name(new_session.Process)))
|
||||
self.outbound_q.put(Events.VolumeChanged(pid, self.get_volume(pid)))
|
||||
self.outbound_q.put(Events.SetName(pid, get_app_name(new_session.Process)))
|
||||
self.outbound_q.put(Events.MuteStateChanged(pid, self.is_muted(pid)))
|
||||
self.outbound_q.put(Events.StateChanged(pid, bool(self._sessions[pid].State)))
|
||||
|
||||
|
||||
Reference in new issue
Block a user