scripts
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x020001CF RID: 463
|
||||
public sealed class AudioSettings
|
||||
{
|
||||
// Token: 0x170007BD RID: 1981
|
||||
// (get) Token: 0x0600216A RID: 8554
|
||||
public static extern AudioSpeakerMode driverCapabilities
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170007BE RID: 1982
|
||||
// (get) Token: 0x0600216B RID: 8555
|
||||
// (set) Token: 0x0600216C RID: 8556
|
||||
public static extern AudioSpeakerMode speakerMode
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x170007BF RID: 1983
|
||||
// (get) Token: 0x0600216D RID: 8557
|
||||
internal static extern int profilerCaptureFlags
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170007C0 RID: 1984
|
||||
// (get) Token: 0x0600216E RID: 8558
|
||||
[ThreadAndSerializationSafe]
|
||||
public static extern double dspTime
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x170007C1 RID: 1985
|
||||
// (get) Token: 0x0600216F RID: 8559
|
||||
// (set) Token: 0x06002170 RID: 8560
|
||||
public static extern int outputSampleRate
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06002171 RID: 8561
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void GetDSPBufferSize(out int bufferLength, out int numBuffers);
|
||||
|
||||
// Token: 0x06002172 RID: 8562
|
||||
[Obsolete("AudioSettings.SetDSPBufferSize is deprecated and has been replaced by audio project settings and the AudioSettings.GetConfiguration/AudioSettings.Reset API.")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void SetDSPBufferSize(int bufferLength, int numBuffers);
|
||||
|
||||
// Token: 0x06002173 RID: 8563 RVA: 0x00027C8C File Offset: 0x00025E8C
|
||||
public static AudioConfiguration GetConfiguration()
|
||||
{
|
||||
AudioConfiguration audioConfiguration;
|
||||
AudioSettings.INTERNAL_CALL_GetConfiguration(out audioConfiguration);
|
||||
return audioConfiguration;
|
||||
}
|
||||
|
||||
// Token: 0x06002174 RID: 8564
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_GetConfiguration(out AudioConfiguration value);
|
||||
|
||||
// Token: 0x06002175 RID: 8565 RVA: 0x00027CAC File Offset: 0x00025EAC
|
||||
public static bool Reset(AudioConfiguration config)
|
||||
{
|
||||
return AudioSettings.INTERNAL_CALL_Reset(ref config);
|
||||
}
|
||||
|
||||
// Token: 0x06002176 RID: 8566
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern bool INTERNAL_CALL_Reset(ref AudioConfiguration config);
|
||||
|
||||
// Token: 0x14000012 RID: 18
|
||||
// (add) Token: 0x06002177 RID: 8567 RVA: 0x00027CC8 File Offset: 0x00025EC8
|
||||
// (remove) Token: 0x06002178 RID: 8568 RVA: 0x00027CFC File Offset: 0x00025EFC
|
||||
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public static event AudioSettings.AudioConfigurationChangeHandler OnAudioConfigurationChanged;
|
||||
|
||||
// Token: 0x06002179 RID: 8569 RVA: 0x00027D30 File Offset: 0x00025F30
|
||||
[RequiredByNativeCode]
|
||||
internal static void InvokeOnAudioConfigurationChanged(bool deviceWasChanged)
|
||||
{
|
||||
if (AudioSettings.OnAudioConfigurationChanged != null)
|
||||
{
|
||||
AudioSettings.OnAudioConfigurationChanged(deviceWasChanged);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170007C2 RID: 1986
|
||||
// (get) Token: 0x0600217A RID: 8570
|
||||
internal static extern bool unityAudioDisabled
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x020001D0 RID: 464
|
||||
// (Invoke) Token: 0x0600217C RID: 8572
|
||||
public delegate void AudioConfigurationChangeHandler(bool deviceWasChanged);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user