summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-08-12 20:35:23 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2018-08-13 12:26:50 +0200
commit01d199965a5df37e2bba333cecdbc1643b000874 (patch)
tree5690dfc1cb2c3ee5f7d046d5f6ac0f56ab4667d6 /src/audio_core
parentaudio_core: Interpolate (diff)
downloadyuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar.gz
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar.bz2
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar.lz
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar.xz
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.tar.zst
yuzu-01d199965a5df37e2bba333cecdbc1643b000874.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/audio_renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index 7bff635b8..397b107f5 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -227,7 +227,7 @@ void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) {
break;
}
- samples_remaining -= samples.size();
+ samples_remaining -= samples.size() / stream->GetNumChannels();
for (const auto& sample : samples) {
const s32 buffer_sample{buffer[offset]};