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");
        }
Example #2
0
        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");
        }