using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using UnityEngine;
using UnityEngine.Audio;

// Token: 0x02000028 RID: 40
public class VoiceController : MonoBehaviour
{
	// Token: 0x170001C2 RID: 450
	// (get) Token: 0x060004D6 RID: 1238 RVA: 0x00014D60 File Offset: 0x00012F60
	public unsafe VolumeSettings Volume
	{
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 470724, RefRangeEnd = 470726, XrefRangeStart = 470720, XrefRangeEnd = 470724, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr_get_Volume_Private_get_VolumeSettings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			IntPtr intPtr3 = intPtr;
			return (intPtr3 != 0) ? new VolumeSettings(intPtr3) : null;
		}
	}

	// Token: 0x060004D7 RID: 1239 RVA: 0x00014DB8 File Offset: 0x00012FB8
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 470742, RefRangeEnd = 470743, XrefRangeStart = 470726, XrefRangeEnd = 470742, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void InitData()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr_InitData_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060004D8 RID: 1240 RVA: 0x00014DFC File Offset: 0x00012FFC
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 470752, RefRangeEnd = 470753, XrefRangeStart = 470743, XrefRangeEnd = 470752, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe AudioSource PlayVoice(int iIndex)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref iIndex;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr_PlayVoice_Public_AudioSource_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			IntPtr intPtr3 = intPtr;
			return (intPtr3 != 0) ? new AudioSource(intPtr3) : null;
		}
	}

	// Token: 0x060004D9 RID: 1241 RVA: 0x00014E64 File Offset: 0x00013064
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 470769, RefRangeEnd = 470770, XrefRangeStart = 470753, XrefRangeEnd = 470769, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void PlayDefaultVoice(int Pitch)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref Pitch;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr_PlayDefaultVoice_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060004DA RID: 1242 RVA: 0x00014EB8 File Offset: 0x000130B8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 470770, XrefRangeEnd = 470775, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void ResetVolume()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr_ResetVolume_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060004DB RID: 1243 RVA: 0x00014EFC File Offset: 0x000130FC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 470775, XrefRangeEnd = 470776, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe VoiceController()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<VoiceController>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VoiceController.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060004DC RID: 1244 RVA: 0x00014F48 File Offset: 0x00013148
	// Note: this type is marked as 'beforefieldinit'.
	static VoiceController()
	{
		Il2CppClassPointerStore<VoiceController>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "VoiceController");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VoiceController>.NativeClassPtr);
		VoiceController.NativeFieldInfoPtr_AMG = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "AMG");
		VoiceController.NativeFieldInfoPtr_DefaultVoice = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "DefaultVoice");
		VoiceController.NativeFieldInfoPtr_Pitch = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "Pitch");
		VoiceController.NativeFieldInfoPtr_Sound = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "Sound");
		VoiceController.NativeFieldInfoPtr_g_iASNum = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_iASNum");
		VoiceController.NativeFieldInfoPtr_g_AS = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_AS");
		VoiceController.NativeFieldInfoPtr_g_VoiceType = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_VoiceType");
		VoiceController.NativeFieldInfoPtr_g_fDefaultVolume = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_fDefaultVolume");
		VoiceController.NativeFieldInfoPtr_g_fVoiceVolume = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_fVoiceVolume");
		VoiceController.NativeFieldInfoPtr_g_iIndex = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, "g_iIndex");
		VoiceController.NativeMethodInfoPtr_get_Volume_Private_get_VolumeSettings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663617);
		VoiceController.NativeMethodInfoPtr_InitData_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663618);
		VoiceController.NativeMethodInfoPtr_PlayVoice_Public_AudioSource_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663619);
		VoiceController.NativeMethodInfoPtr_PlayDefaultVoice_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663620);
		VoiceController.NativeMethodInfoPtr_ResetVolume_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663621);
		VoiceController.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VoiceController>.NativeClassPtr, 100663622);
	}

	// Token: 0x060004DD RID: 1245 RVA: 0x0000351C File Offset: 0x0000171C
	public VoiceController(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x170001B8 RID: 440
	// (get) Token: 0x060004DE RID: 1246 RVA: 0x000150B8 File Offset: 0x000132B8
	// (set) Token: 0x060004DF RID: 1247 RVA: 0x000150EC File Offset: 0x000132EC
	public unsafe AudioMixerGroup AMG
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_AMG);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new AudioMixerGroup(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_AMG), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x170001B9 RID: 441
	// (get) Token: 0x060004E0 RID: 1248 RVA: 0x00015114 File Offset: 0x00013314
	// (set) Token: 0x060004E1 RID: 1249 RVA: 0x00015148 File Offset: 0x00013348
	public unsafe AudioClip DefaultVoice
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_DefaultVoice);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new AudioClip(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_DefaultVoice), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x170001BA RID: 442
	// (get) Token: 0x060004E2 RID: 1250 RVA: 0x00015170 File Offset: 0x00013370
	// (set) Token: 0x060004E3 RID: 1251 RVA: 0x00015198 File Offset: 0x00013398
	public unsafe float Pitch
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_Pitch);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_Pitch)) = value;
		}
	}

	// Token: 0x170001BB RID: 443
	// (get) Token: 0x060004E4 RID: 1252 RVA: 0x000151BC File Offset: 0x000133BC
	// (set) Token: 0x060004E5 RID: 1253 RVA: 0x000151F0 File Offset: 0x000133F0
	public unsafe Il2CppReferenceArray<AudioClip> Sound
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_Sound);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<AudioClip>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_Sound), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x170001BC RID: 444
	// (get) Token: 0x060004E6 RID: 1254 RVA: 0x00015218 File Offset: 0x00013418
	// (set) Token: 0x060004E7 RID: 1255 RVA: 0x00015236 File Offset: 0x00013436
	public unsafe static int g_iASNum
	{
		get
		{
			int num;
			IL2CPP.il2cpp_field_static_get_value(VoiceController.NativeFieldInfoPtr_g_iASNum, (void*)(&num));
			return num;
		}
		set
		{
			IL2CPP.il2cpp_field_static_set_value(VoiceController.NativeFieldInfoPtr_g_iASNum, (void*)(&value));
		}
	}

	// Token: 0x170001BD RID: 445
	// (get) Token: 0x060004E8 RID: 1256 RVA: 0x00015248 File Offset: 0x00013448
	// (set) Token: 0x060004E9 RID: 1257 RVA: 0x0001527C File Offset: 0x0001347C
	public unsafe Il2CppReferenceArray<AudioSource> g_AS
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_AS);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<AudioSource>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_AS), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x170001BE RID: 446
	// (get) Token: 0x060004EA RID: 1258 RVA: 0x000152A4 File Offset: 0x000134A4
	// (set) Token: 0x060004EB RID: 1259 RVA: 0x000152D8 File Offset: 0x000134D8
	public unsafe Il2CppStructArray<VoiceController.VoiceType> g_VoiceType
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_VoiceType);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppStructArray<VoiceController.VoiceType>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_VoiceType), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x170001BF RID: 447
	// (get) Token: 0x060004EC RID: 1260 RVA: 0x00015300 File Offset: 0x00013500
	// (set) Token: 0x060004ED RID: 1261 RVA: 0x0001531E File Offset: 0x0001351E
	public unsafe static float g_fDefaultVolume
	{
		get
		{
			float num;
			IL2CPP.il2cpp_field_static_get_value(VoiceController.NativeFieldInfoPtr_g_fDefaultVolume, (void*)(&num));
			return num;
		}
		set
		{
			IL2CPP.il2cpp_field_static_set_value(VoiceController.NativeFieldInfoPtr_g_fDefaultVolume, (void*)(&value));
		}
	}

	// Token: 0x170001C0 RID: 448
	// (get) Token: 0x060004EE RID: 1262 RVA: 0x00015330 File Offset: 0x00013530
	// (set) Token: 0x060004EF RID: 1263 RVA: 0x0001534E File Offset: 0x0001354E
	public unsafe static float g_fVoiceVolume
	{
		get
		{
			float num;
			IL2CPP.il2cpp_field_static_get_value(VoiceController.NativeFieldInfoPtr_g_fVoiceVolume, (void*)(&num));
			return num;
		}
		set
		{
			IL2CPP.il2cpp_field_static_set_value(VoiceController.NativeFieldInfoPtr_g_fVoiceVolume, (void*)(&value));
		}
	}

	// Token: 0x170001C1 RID: 449
	// (get) Token: 0x060004F0 RID: 1264 RVA: 0x00015360 File Offset: 0x00013560
	// (set) Token: 0x060004F1 RID: 1265 RVA: 0x00015388 File Offset: 0x00013588
	public unsafe int g_iIndex
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_iIndex);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VoiceController.NativeFieldInfoPtr_g_iIndex)) = value;
		}
	}

	// Token: 0x040002F6 RID: 758
	private static readonly IntPtr NativeFieldInfoPtr_AMG;

	// Token: 0x040002F7 RID: 759
	private static readonly IntPtr NativeFieldInfoPtr_DefaultVoice;

	// Token: 0x040002F8 RID: 760
	private static readonly IntPtr NativeFieldInfoPtr_Pitch;

	// Token: 0x040002F9 RID: 761
	private static readonly IntPtr NativeFieldInfoPtr_Sound;

	// Token: 0x040002FA RID: 762
	private static readonly IntPtr NativeFieldInfoPtr_g_iASNum;

	// Token: 0x040002FB RID: 763
	private static readonly IntPtr NativeFieldInfoPtr_g_AS;

	// Token: 0x040002FC RID: 764
	private static readonly IntPtr NativeFieldInfoPtr_g_VoiceType;

	// Token: 0x040002FD RID: 765
	private static readonly IntPtr NativeFieldInfoPtr_g_fDefaultVolume;

	// Token: 0x040002FE RID: 766
	private static readonly IntPtr NativeFieldInfoPtr_g_fVoiceVolume;

	// Token: 0x040002FF RID: 767
	private static readonly IntPtr NativeFieldInfoPtr_g_iIndex;

	// Token: 0x04000300 RID: 768
	private static readonly IntPtr NativeMethodInfoPtr_get_Volume_Private_get_VolumeSettings_0;

	// Token: 0x04000301 RID: 769
	private static readonly IntPtr NativeMethodInfoPtr_InitData_Public_Void_0;

	// Token: 0x04000302 RID: 770
	private static readonly IntPtr NativeMethodInfoPtr_PlayVoice_Public_AudioSource_Int32_0;

	// Token: 0x04000303 RID: 771
	private static readonly IntPtr NativeMethodInfoPtr_PlayDefaultVoice_Public_Void_Int32_0;

	// Token: 0x04000304 RID: 772
	private static readonly IntPtr NativeMethodInfoPtr_ResetVolume_Public_Void_0;

	// Token: 0x04000305 RID: 773
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x02000029 RID: 41
	public enum VoiceType
	{
		// Token: 0x04000307 RID: 775
		Default,
		// Token: 0x04000308 RID: 776
		Voice
	}
}
