aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-07-24 19:02:49 -0700
committerChris Robinson <[email protected]>2021-07-24 19:02:49 -0700
commit510e5fc1974be8cfbe64fe2f3d2d084d79b2d28d (patch)
tree0713dddb4a187082d3f001f760fe158df0d563a4 /alc/backends
parentd662cd876142c18c6746d83a7f2f76c27b3ac2d1 (diff)
Remove a redundant buffer clear
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/oboe.cpp11
1 files changed, 0 insertions, 11 deletions
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<uint32_t>(numFrames*numChannels)*sizeof(float));
- else
- memset(audioData, 0, static_cast<uint32_t>(numFrames*numChannels)*sizeof(int16_t));
- }
-
mDevice->renderSamples(audioData, static_cast<uint32_t>(numFrames),
static_cast<uint32_t>(numChannels));
return oboe::DataCallbackResult::Continue;