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