using System;
using Cpp2IlInjected;

// Token: 0x020001BB RID: 443
[Token(Token = "0x20001BB")]
public class PlaySoundEffect : SceneEvent
{
	// Token: 0x0600132E RID: 4910 RVA: 0x0002BFC0 File Offset: 0x0002A1C0
	[Token(Token = "0x600132E")]
	[Address(RVA = "0x313330", Offset = "0x312130", VA = "0x180313330", Slot = "4")]
	public override void InitData(SceneEventManager SEM)
	{
		base.InitData(SEM);
		SoundEffect se = this.SE;
		int num = 0;
		if (se != num)
		{
			this.SE.InitData();
			Game.BindStageTimeScale(this.SE);
		}
	}

	// Token: 0x0600132F RID: 4911 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600132F")]
	[Address(RVA = "0x313570", Offset = "0x312370", VA = "0x180313570")]
	protected void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001330 RID: 4912 RVA: 0x0002C004 File Offset: 0x0002A204
	[Token(Token = "0x6001330")]
	[Address(RVA = "0x313400", Offset = "0x312200", VA = "0x180313400", Slot = "5")]
	public override void OpenEvent()
	{
		base.OpenEvent();
		SoundEffect se = this.SE;
		int num = 0;
		if (se != num)
		{
			SoundEffect se2 = this.SE;
			int num2 = 0;
			if (num2 >= (int)this.FadeSpeed)
			{
				throw new NullReferenceException();
			}
			this.g_fVolume = 0f;
			se2.PlayRandom((float)num2, 1f);
		}
		float replayTime = this.ReplayTime;
		this.g_fReplayTimeVal = replayTime;
		this.g_fPitch = 1f;
	}

	// Token: 0x06001331 RID: 4913 RVA: 0x0002C074 File Offset: 0x0002A274
	[Token(Token = "0x6001331")]
	[Address(RVA = "0x3134D0", Offset = "0x3122D0", VA = "0x1803134D0", Slot = "8")]
	public override void ReleaseEvent()
	{
		base.ReleaseEvent();
		SoundEffect se = this.SE;
		int num = 0;
		if (se != num)
		{
			this.SE.Stop();
			return;
		}
	}

	// Token: 0x06001332 RID: 4914 RVA: 0x0002C0B0 File Offset: 0x0002A2B0
	[Token(Token = "0x6001332")]
	[Address(RVA = "0x313730", Offset = "0x312530", VA = "0x180313730")]
	public PlaySoundEffect()
	{
	}

	// Token: 0x04001DDE RID: 7646
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001DDE")]
	public SoundEffect SE;

	// Token: 0x04001DDF RID: 7647
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001DDF")]
	public bool ReplayLoop;

	// Token: 0x04001DE0 RID: 7648
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x4001DE0")]
	public float ReplayTime;

	// Token: 0x04001DE1 RID: 7649
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4001DE1")]
	private float g_fReplayTimeVal;

	// Token: 0x04001DE2 RID: 7650
	[FieldOffset(Offset = "0x4C")]
	[Token(Token = "0x4001DE2")]
	public float FadeSpeed;

	// Token: 0x04001DE3 RID: 7651
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4001DE3")]
	private float g_fVolume;

	// Token: 0x04001DE4 RID: 7652
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4001DE4")]
	public float PitchSpeed;

	// Token: 0x04001DE5 RID: 7653
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4001DE5")]
	public float PitchTarget = 1f;

	// Token: 0x04001DE6 RID: 7654
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x4001DE6")]
	private float g_fPitch;
}
