mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
audio_renderer: samples_remaining counts frames, not samples
This commit is contained in:
parent
0525998743
commit
26aa4ae7a8
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
samples_remaining -= samples.size();
|
samples_remaining -= samples.size() / stream->GetNumChannels();
|
||||||
|
|
||||||
for (const auto& sample : samples) {
|
for (const auto& sample : samples) {
|
||||||
const s32 buffer_sample{buffer[offset]};
|
const s32 buffer_sample{buffer[offset]};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue