From d6c5275895095c84cfff8ba9bff884b26d18b2ed Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Tue, 23 Mar 2021 15:36:19 +0100 Subject: [PATCH] Fixed crash --- native/serverconnection/src/audio/AudioOutput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/serverconnection/src/audio/AudioOutput.cpp b/native/serverconnection/src/audio/AudioOutput.cpp index 8898410..c145df6 100644 --- a/native/serverconnection/src/audio/AudioOutput.cpp +++ b/native/serverconnection/src/audio/AudioOutput.cpp @@ -458,11 +458,11 @@ void AudioOutput::fill_buffer(void *output, size_t out_frame_count, size_t out_c if(actual_sources > 0) { if(local_frame_count == out_frame_count) { /* Output */ - if(!merge::merge_n_sources(output, this->source_merge_buffer, sources, this->channel_count_, local_frame_count)) { + if(!merge::merge_n_sources(output, this->source_merge_buffer, actual_sources, this->channel_count_, local_frame_count)) { log_warn(category::audio, tr("failed to merge buffers!")); } } else { - if(!merge::merge_n_sources(this->source_buffer, this->source_merge_buffer, sources, this->channel_count_, local_frame_count)) { + if(!merge::merge_n_sources(this->source_buffer, this->source_merge_buffer, actual_sources, this->channel_count_, local_frame_count)) { log_warn(category::audio, tr("failed to merge buffers!")); }