/// <summary> /// Set the channel volume at the given index /// </summary> public static void SetVolume(bool isMaster, int index) { if (m_HasStarted) { float value = (float)m_Sliders[index].Value / 100f; if (isMaster) { m_MasterVolume.SetMasterVolumeLevelScalarNative(value, Guid.Empty); } else { m_ChannelVolume[index - 1].SetMasterVolumeNative(value, Guid.Empty); } } }