From b588232b8328d129133ee75db40d0569aa45787a Mon Sep 17 00:00:00 2001 From: jmb462 Date: Wed, 17 Mar 2021 19:18:22 +0100 Subject: Fix AudioEffectCapture buffer length cannot be changed --- doc/classes/AudioEffectCapture.xml | 2 +- servers/audio/effects/audio_effect_capture.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/classes/AudioEffectCapture.xml b/doc/classes/AudioEffectCapture.xml index cf3d87c2e4..c7ee621ca6 100644 --- a/doc/classes/AudioEffectCapture.xml +++ b/doc/classes/AudioEffectCapture.xml @@ -67,7 +67,7 @@ - Length of the internal ring buffer, in seconds. + Length of the internal ring buffer, in seconds. Setting the buffer length will have no effect if already initialized. diff --git a/servers/audio/effects/audio_effect_capture.cpp b/servers/audio/effects/audio_effect_capture.cpp index 37e4122e50..78837c7531 100644 --- a/servers/audio/effects/audio_effect_capture.cpp +++ b/servers/audio/effects/audio_effect_capture.cpp @@ -91,8 +91,6 @@ Ref AudioEffectCapture::instance() { } void AudioEffectCapture::set_buffer_length(float p_buffer_length_seconds) { - ERR_FAIL_COND(buffer_initialized); - buffer_length_seconds = p_buffer_length_seconds; } -- cgit v1.2.3