Merge pull request #47112 from jmb462/fix-AudioEffectCapture-buffer-length-cannot-be-changed

Fix AudioEffectCapture buffer length cannot be changed (Fix #47107)
This commit is contained in:
Rémi Verschelde 2021-03-18 08:28:11 +01:00 committed by GitHub
commit 400f6f1676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -67,7 +67,7 @@
</methods>
<members>
<member name="buffer_length" type="float" setter="set_buffer_length" getter="get_buffer_length" default="0.1">
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.
</member>
</members>
<constants>

View file

@ -91,8 +91,6 @@ Ref<AudioEffectInstance> AudioEffectCapture::instance() {
}
void AudioEffectCapture::set_buffer_length(float p_buffer_length_seconds) {
ERR_FAIL_COND(buffer_initialized);
buffer_length_seconds = p_buffer_length_seconds;
}