Fix interpretation of needed in audio callback (#2312)

This commit is contained in:
doop
2026-08-20 19:18:07 -04:00
committed by GitHub
parent b5724fb6fd
commit 338995ebe0
+2 -2
View File
@@ -35,7 +35,7 @@ static void SDLCALL GetNewAudio(
/**
* Render an entire new frame of audio and output it to SDL3.
* Note: "audio frames" are unrelated to video frames.
* @return Amount of audio samples rendered.
* @return Amount of audio samples rendered in bytes.
*/
static int RenderNewAudioFrame();
@@ -121,7 +121,7 @@ int RenderNewAudioFrame() {
JASAudioThread::snIntCount -= 1;
}
return static_cast<u16>(countSubframes) * DSP_SUBFRAME_SIZE;
return static_cast<u16>(countSubframes) * sizeof(OutputSubframe);
}
static void InterleaveOutputData(const OutputSubframe& data, std::span<f32> target) {