mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix recording bus regression.
This commit is contained in:
parent
7464e61fab
commit
d8ba9f1824
@ -217,7 +217,7 @@ Ref<AudioStreamSample> AudioEffectRecord::get_recording() const {
|
||||
PoolVector<uint8_t> dst_data;
|
||||
|
||||
ERR_FAIL_COND_V(current_instance.is_null(), NULL);
|
||||
ERR_FAIL_COND_V(current_instance->recording_data.size(), NULL);
|
||||
ERR_FAIL_COND_V(current_instance->recording_data.size() == 0, NULL);
|
||||
|
||||
if (dst_format == AudioStreamSample::FORMAT_8_BITS) {
|
||||
int data_size = current_instance->recording_data.size();
|
||||
|
Loading…
Reference in New Issue
Block a user