public override void SetOn(Sample sample, float value) { float num; if (this.pitchType == PitchParamType.Multiply) { num = value; } else { num = (float)Math.Pow(1.05946, (double)value); } sample.source.pitch = AudioSourceUtility.GetSanitizedPitch(sample.SanitizedPitch * num, "SoundParamTarget_Pitch"); }
public override void SetOn(Sample sample, float value) { float num = (pitchType != 0) ? ((float)Math.Pow(1.05946, value)) : value; sample.source.pitch = AudioSourceUtility.GetSanitizedPitch(sample.SanitizedPitch * num, "SoundParamTarget_Pitch"); }