1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #70515 from stmSi/fix-hanging-audio-pitch-scale

Fix hanging if audiostream's pitch_scale is NaN
This commit is contained in:
Rémi Verschelde
2023-02-17 14:06:55 +01:00
4 changed files with 4 additions and 4 deletions

View File

@@ -309,7 +309,7 @@ Ref<AudioEffectInstance> AudioEffectPitchShift::instantiate() {
}
void AudioEffectPitchShift::set_pitch_scale(float p_pitch_scale) {
ERR_FAIL_COND(p_pitch_scale <= 0.0);
ERR_FAIL_COND(!(p_pitch_scale > 0.0));
pitch_scale = p_pitch_scale;
}