using System; using System.Runtime.CompilerServices; using UnityEngine.Playables; using UnityEngine.Scripting; namespace UnityEngine.Audio { // Token: 0x020001CB RID: 459 [RequiredByNativeCode] public struct AudioMixerPlayable : IPlayable, IEquatable { // Token: 0x0600215A RID: 8538 RVA: 0x00027AF4 File Offset: 0x00025CF4 internal AudioMixerPlayable(PlayableHandle handle) { if (handle.IsValid()) { if (!handle.IsPlayableOfType()) { throw new InvalidCastException("Can't set handle: the playable is not an AudioMixerPlayable."); } } this.m_Handle = handle; } // Token: 0x0600215B RID: 8539 RVA: 0x00027B24 File Offset: 0x00025D24 public static AudioMixerPlayable Create(PlayableGraph graph, int inputCount = 0, bool normalizeInputVolumes = false) { PlayableHandle playableHandle = AudioMixerPlayable.CreateHandle(graph, inputCount, normalizeInputVolumes); return new AudioMixerPlayable(playableHandle); } // Token: 0x0600215C RID: 8540 RVA: 0x00027B48 File Offset: 0x00025D48 private static PlayableHandle CreateHandle(PlayableGraph graph, int inputCount, bool normalizeInputVolumes) { PlayableHandle @null = PlayableHandle.Null; PlayableHandle playableHandle; if (!AudioMixerPlayable.CreateAudioMixerPlayableInternal(ref graph, inputCount, normalizeInputVolumes, ref @null)) { playableHandle = PlayableHandle.Null; } else { playableHandle = @null; } return playableHandle; } // Token: 0x0600215D RID: 8541 RVA: 0x00027B80 File Offset: 0x00025D80 public PlayableHandle GetHandle() { return this.m_Handle; } // Token: 0x0600215E RID: 8542 RVA: 0x00027B9C File Offset: 0x00025D9C public static implicit operator Playable(AudioMixerPlayable playable) { return new Playable(playable.GetHandle()); } // Token: 0x0600215F RID: 8543 RVA: 0x00027BC0 File Offset: 0x00025DC0 public static explicit operator AudioMixerPlayable(Playable playable) { return new AudioMixerPlayable(playable.GetHandle()); } // Token: 0x06002160 RID: 8544 RVA: 0x00027BE4 File Offset: 0x00025DE4 public bool Equals(AudioMixerPlayable other) { return this.GetHandle() == other.GetHandle(); } // Token: 0x06002161 RID: 8545 RVA: 0x00027C0C File Offset: 0x00025E0C public bool GetAutoNormalizeVolumes() { return AudioMixerPlayable.GetAutoNormalizeInternal(ref this.m_Handle); } // Token: 0x06002162 RID: 8546 RVA: 0x00027C2C File Offset: 0x00025E2C public void GetAutoNormalizeVolumes(bool value) { AudioMixerPlayable.SetAutoNormalizeInternal(ref this.m_Handle, value); } // Token: 0x06002163 RID: 8547 RVA: 0x00027C3C File Offset: 0x00025E3C private static bool GetAutoNormalizeInternal(ref PlayableHandle hdl) { return AudioMixerPlayable.INTERNAL_CALL_GetAutoNormalizeInternal(ref hdl); } // Token: 0x06002164 RID: 8548 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_GetAutoNormalizeInternal(ref PlayableHandle hdl); // Token: 0x06002165 RID: 8549 RVA: 0x00027C58 File Offset: 0x00025E58 private static void SetAutoNormalizeInternal(ref PlayableHandle hdl, bool normalise) { AudioMixerPlayable.INTERNAL_CALL_SetAutoNormalizeInternal(ref hdl, normalise); } // Token: 0x06002166 RID: 8550 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetAutoNormalizeInternal(ref PlayableHandle hdl, bool normalise); // Token: 0x06002167 RID: 8551 RVA: 0x00027C64 File Offset: 0x00025E64 private static bool CreateAudioMixerPlayableInternal(ref PlayableGraph graph, int inputCount, bool normalizeInputVolumes, ref PlayableHandle handle) { return AudioMixerPlayable.INTERNAL_CALL_CreateAudioMixerPlayableInternal(ref graph, inputCount, normalizeInputVolumes, ref handle); } // Token: 0x06002168 RID: 8552 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool INTERNAL_CALL_CreateAudioMixerPlayableInternal(ref PlayableGraph graph, int inputCount, bool normalizeInputVolumes, ref PlayableHandle handle); // Token: 0x040004E2 RID: 1250 private PlayableHandle m_Handle; } }