mirror of
https://github.com/norohind/AudioControl.git
synced 2025-04-12 05:00:01 +03:00
Send VolumeChanged right after NewSession (as it allows a client to show correct volume position immediately)
This commit is contained in:
parent
3be4be8ec7
commit
f86b9e73ba
@ -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)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user