Esempio n. 1
0
        internal static void OnSessionCreated(NativeInterfaces.IAudioSessionControl newSession)
        {
            if (newSession == null)
            {
                return;
            }

            var args = new AudioSessionCreatedEventArgs(new AudioSession((NativeInterfaces.IAudioSessionControl2)newSession));

            NewSession?.Invoke(args);

            if (args.Release)
            {
                args.Session.Dispose();
            }
        }
Esempio n. 2
0
 public void OnSessionCreated(NativeInterfaces.IAudioSessionControl session) =>
 AudioManager.OnSessionCreated(session);