Replace naudio.dll with code

This commit is contained in:
CroakFang
2022-09-10 16:59:44 +08:00
parent 3c17d8770d
commit 19dbe75b53
1113 changed files with 50280 additions and 182 deletions
@@ -0,0 +1,24 @@
using NAudio.CoreAudioApi.Interfaces;
using System;
using System.Linq;
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;
}
}
}