mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fixed Voice_Count issues in AudioEffectChorus:
- Setting voice_count value to 4 (MAX_VOICES) is now allowed - Fixed slider glitch on setting voice_count value
This commit is contained in:
parent
09800ac650
commit
ffca222d17
@ -182,9 +182,8 @@ Ref<AudioEffectInstance> AudioEffectChorus::instance() {
|
||||
|
||||
void AudioEffectChorus::set_voice_count(int p_voices) {
|
||||
|
||||
ERR_FAIL_COND(p_voices < 1 || p_voices >= MAX_VOICES);
|
||||
ERR_FAIL_COND(p_voices < 1 || p_voices > MAX_VOICES);
|
||||
voice_count = p_voices;
|
||||
_change_notify();
|
||||
}
|
||||
|
||||
int AudioEffectChorus::get_voice_count() const {
|
||||
|
Loading…
Reference in New Issue
Block a user