Fix AudioEffectCapture buffer length cannot be changed
(cherry picked from commit b588232b83
)
This commit is contained in:
parent
843eb80039
commit
a5bcacb115
2 changed files with 1 additions and 3 deletions
|
@ -67,7 +67,7 @@
|
||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
<member name="buffer_length" type="float" setter="set_buffer_length" getter="get_buffer_length" default="0.1">
|
<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>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<constants>
|
<constants>
|
||||||
|
|
|
@ -95,8 +95,6 @@ Ref<AudioEffectInstance> AudioEffectCapture::instance() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioEffectCapture::set_buffer_length(float p_buffer_length_seconds) {
|
void AudioEffectCapture::set_buffer_length(float p_buffer_length_seconds) {
|
||||||
ERR_FAIL_COND(buffer_initialized);
|
|
||||||
|
|
||||||
buffer_length_seconds = p_buffer_length_seconds;
|
buffer_length_seconds = p_buffer_length_seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue