summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndah Sylvia <ISylvox@yahoo.com>2017-09-25 20:39:41 +0700
committerIndah Sylvia <ISylvox@yahoo.com>2017-09-25 20:46:52 +0700
commitffca222d171cc88f52c35436919f892f8e78df6b (patch)
tree8b74a1661747b8301d7c9402f3fb79fe96ecadda
parent09800ac65079599c568679b53962a313182885ea (diff)
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
-rw-r--r--servers/audio/effects/audio_effect_chorus.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp
index 76dd585ffa..32631beb2c 100644
--- a/servers/audio/effects/audio_effect_chorus.cpp
+++ b/servers/audio/effects/audio_effect_chorus.cpp
@@ -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 {