MVH/NAudio-2.2.1/NAudio.Wasapi/CoreAudioApi/AudioSessionNotification.cs
2024-06-07 00:47:07 +02:00

23 lines
552 B
C#

using NAudio.CoreAudioApi.Interfaces;
using System.Runtime.InteropServices;
namespace NAudio.CoreAudioApi
{
internal class AudioSessionNotification : IAudioSessionNotification
{
private AudioSessionManager parent;
internal AudioSessionNotification(AudioSessionManager parent)
{
this.parent = parent;
}
[PreserveSig]
public int OnSessionCreated(IAudioSessionControl newSession)
{
parent.FireSessionCreated(newSession);
return 0;
}
}
}