Exemplo 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();
            }
        }
Exemplo n.º 2
0
 public void OnSessionCreated(NativeInterfaces.IAudioSessionControl session) =>
 AudioManager.OnSessionCreated(session);