Log volume notifications
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 33s
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 33s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user