using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

// Token: 0x0200013F RID: 319
public class AudioPlayer : MonoBehaviour
{
	// Token: 0x06003FFD RID: 16381 RVA: 0x000FE1D4 File Offset: 0x000FC3D4
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe AudioPlayer()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AudioPlayer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06003FFE RID: 16382 RVA: 0x000FE220 File Offset: 0x000FC420
	// Note: this type is marked as 'beforefieldinit'.
	static AudioPlayer()
	{
		Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "AudioPlayer");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr);
		AudioPlayer.NativeFieldInfoPtr_player = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr, "player");
		AudioPlayer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AudioPlayer>.NativeClassPtr, 100667341);
	}

	// Token: 0x06003FFF RID: 16383 RVA: 0x0000351C File Offset: 0x0000171C
	public AudioPlayer(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001775 RID: 6005
	// (get) Token: 0x06004000 RID: 16384 RVA: 0x000FE278 File Offset: 0x000FC478
	// (set) Token: 0x06004001 RID: 16385 RVA: 0x000FE2AC File Offset: 0x000FC4AC
	public unsafe AudioSource player
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AudioPlayer.NativeFieldInfoPtr_player);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new AudioSource(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(AudioPlayer.NativeFieldInfoPtr_player), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x040029F4 RID: 10740
	private static readonly IntPtr NativeFieldInfoPtr_player;

	// Token: 0x040029F5 RID: 10741
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
