public void SetSoundTouchProfile(SoundTouchProfile soundTouchProfile) { if (currentSoundTouchProfile != null && playbackRate != 1.0f && soundTouchProfile.UseTempo != currentSoundTouchProfile.UseTempo) { if (soundTouchProfile.UseTempo) { soundTouch.SetRate(1.0f); soundTouch.SetPitchOctaves(0f); soundTouch.SetTempo(playbackRate); } else { soundTouch.SetTempo(1.0f); soundTouch.SetRate(playbackRate); } } this.currentSoundTouchProfile = soundTouchProfile; soundTouch.SetUseAntiAliasing(soundTouchProfile.UseAntiAliasing); soundTouch.SetUseQuickSeek(soundTouchProfile.UseQuickSeek); }