|
@@ -320,7 +320,7 @@ float AudioStreamPlayer2D::get_volume_db() const {
|
|
}
|
|
}
|
|
|
|
|
|
void AudioStreamPlayer2D::set_pitch_scale(float p_pitch_scale) {
|
|
void AudioStreamPlayer2D::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;
|
|
pitch_scale = p_pitch_scale;
|
|
}
|
|
}
|
|
float AudioStreamPlayer2D::get_pitch_scale() const {
|
|
float AudioStreamPlayer2D::get_pitch_scale() const {
|