1
0
Fork 0
forked from suyu/suyu

audio_renderer: samples_remaining counts frames, not samples

This commit is contained in:
MerryMage 2018-08-12 19:35:23 +01:00
parent 4b44b8b4fb
commit 01d199965a

View file

@ -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]};