26 lines
744 B
C#
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);
|
|
}
|
|
}
|