From 510e5fc1974be8cfbe64fe2f3d2d084d79b2d28d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 24 Jul 2021 19:02:49 -0700 Subject: Remove a redundant buffer clear --- alc/backends/oboe.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'alc/backends/oboe.cpp') diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp index 28ade849..ddc3f0b9 100644 --- a/alc/backends/oboe.cpp +++ b/alc/backends/oboe.cpp @@ -40,17 +40,6 @@ oboe::DataCallbackResult OboePlayback::onAudioReady(oboe::AudioStream *oboeStrea assert(numFrames > 0); const int32_t numChannels{oboeStream->getChannelCount()}; - if UNLIKELY(numChannels > 2 && mDevice->FmtChans == DevFmtStereo) - { - /* If the device is only mixing stereo but there's more than two - * output channels, there are unused channels that need to be silenced. - */ - if(mStream->getFormat() == oboe::AudioFormat::Float) - memset(audioData, 0, static_cast(numFrames*numChannels)*sizeof(float)); - else - memset(audioData, 0, static_cast(numFrames*numChannels)*sizeof(int16_t)); - } - mDevice->renderSamples(audioData, static_cast(numFrames), static_cast(numChannels)); return oboe::DataCallbackResult::Continue; -- cgit v1.2.3