23 lines
552 B
C#
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;
|
|
}
|
|
}
|
|
}
|