Compare commits

...
1 Commits
Author SHA1 Message Date
ckaczor ad212e7416 Log volume notifications
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 33s
2026-08-18 14:52:56 -04:00
+6
View File
@@ -27,6 +27,7 @@ internal class AudioDevice : IAudioSessionEventsHandler
_device = device;
_device.AudioEndpointVolume.OnVolumeNotification += AudioEndpointVolume_OnVolumeNotification;
_device.AudioSessionManager.AudioSessionControl.RegisterEventClient(this);
_device.AudioSessionManager.OnSessionCreated += AudioSessionManager_OnSessionCreated;
@@ -39,6 +40,11 @@ internal class AudioDevice : IAudioSessionEventsHandler
}
}
private void AudioEndpointVolume_OnVolumeNotification(AudioVolumeNotificationData data)
{
_logger.Information("AudioEndpointVolume_OnVolumeNotification: {guid} {muted}", data.Guid, data.Muted);
}
private void AudioSessionManager_OnSessionCreated(object sender, IAudioSessionControl newSession)
{
var session = new AudioSessionControl(newSession);