namespace Photon.Voice.Unity.Demos
{

	// [TypeInfo RVA: 0x0]
	public class BackgroundMusicController : MonoBehaviour
	{
		private UnityEngine.UI.Text volumeText; // 0x20
		private UnityEngine.UI.Slider volumeSlider; // 0x28
		private UnityEngine.AudioSource audioSource; // 0x30
		private float initialVolume; // 0x38

		// RVA: 0x328DA6C VA: 0x7818978A6C
		private void Awake();
		/*
		 *   undefined *puVar1;
		 *   undefined *puVar2;
		 *   void *pvVar3;
		 *   long *plVar4;
		 *   void *methodInfo_00;
		 *   long lVar5;
		 *   void *slider;
		 *   float fVar6;
		 *
		 *   if ((bRam000000000754ad18 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c5e48);
		 *     func_0x031fdc8c(PTR_DAT_070c5e50);
		 *     bRam000000000754ad18 = 1;
		 *   }
		 *   if (this.volumeSlider != null) {
		 *     UnityEngine.UI.Slider.set_minValue(this.volumeSlider,0.0);
		 *     puVar2 = PTR_DAT_070c5e50;
		 *     puVar1 = PTR_DAT_070c5e48;
		 *     if (this.volumeSlider != null) {
		 *       UnityEngine.UI.Slider.set_maxValue(this.volumeSlider,1.0);
		 *       slider = this.volumeSlider;
		 *       pvVar3 = (void *)func_0x031fdf24(*(undefined8 *)puVar2);
		 *       methodInfo_00 = *(void **)puVar1;
		 *       func_0x048ad89c(pvVar3,this,methodInfo_00,0);
		 *       UiExtensions.SetSingleOnValueChangedCallback(slider,pvVar3);
		 *       plVar4 = this.volumeSlider;
		 *       if (plVar4 != null) {
		 *         (**(code **)(*plVar4 + 0x428))(this.initialVolume,plVar4,*(undefined8 *)(*plVar4 + 0x430));
		 *         pvVar3 = this.audioSource;
		 *         if (pvVar3 != null) {
		 *           fVar6 = this.initialVolume;
		 *           if ((bRam000000000755d748 & 1) == 0) {
		 *             func_0x031fdc8c(PTR_DAT_0714e1b0,0);
		 *             bRam000000000755d748 = 1;
		 *           }
		 *           if (pvVar3 != null) {
		 *             lVar5 = *(long *)((long)pvVar3 + 0x10);
		 *             if (lVar5 == 0) {
		 *               UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(pvVar3);
		 *             }
		 *             if (pcRam000000000755d7a0 == null) {
		 *               pcRam000000000755d7a0 = (code *)func_0x031fdc50(&UNK_0136db23);
		 *             }
		 *             (*pcRam000000000755d7a0)(fVar6,lVar5);
		 *             return;
		 *           }
		 *           IL2CPP.ThrowNullReferenceException();
		 *         }
		 *       }
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328DBB8 VA: 0x7818978BB8
		private void OnVolumeChanged(float newValue);
		/*
		 *   void *obj;
		 *   long lVar1;
		 *
		 *   obj = this.audioSource;
		 *   if (obj == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   if ((bRam000000000755d748 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_0714e1b0,0);
		 *     bRam000000000755d748 = 1;
		 *   }
		 *   if (obj != null) {
		 *     lVar1 = *(long *)((long)obj + 0x10);
		 *     if (lVar1 == 0) {
		 *       UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException(obj);
		 *     }
		 *     if (pcRam000000000755d7a0 == null) {
		 *       pcRam000000000755d7a0 = (code *)func_0x031fdc50(&UNK_0136db23);
		 *     }
		 *     (*pcRam000000000755d7a0)(newValue,lVar1);
		 *     return;
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x328DBD0 VA: 0x7818978BD0
		public void .ctor();
		/*
		 *   undefined *puVar1;
		 *
		 *   this.initialVolume = 0.125;
		 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *   if ((bRam000000000755f76f & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8,0);
		 *     bRam000000000755f76f = 1;
		 *   }
		 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *     func_0x031fde08();
		 *   }
		 *   return;
		 */
	}
}
