Replace naudio.dll with code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user