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

26 lines
744 B
C#

using System;
using System.Linq;
using System.Runtime.InteropServices;
namespace NAudio.CoreAudioApi.Interfaces
{
/// <summary>
/// Windows CoreAudio IAudioSessionNotification interface
/// Defined in AudioPolicy.h
/// </summary>
[Guid("641DD20B-4D41-49CC-ABA3-174B9477BB08"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
ComImport]
public interface IAudioSessionNotification
{
/// <summary>
///
/// </summary>
/// <param name="newSession">session being added</param>
/// <returns>An HRESULT code indicating whether the operation succeeded of failed.</returns>
[PreserveSig]
int OnSessionCreated(IAudioSessionControl newSession);
}
}