diff --git a/src/dusk/audio/DuskAudioSystem.cpp b/src/dusk/audio/DuskAudioSystem.cpp index 3577d3c9c7..3fda98a436 100644 --- a/src/dusk/audio/DuskAudioSystem.cpp +++ b/src/dusk/audio/DuskAudioSystem.cpp @@ -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(countSubframes) * DSP_SUBFRAME_SIZE; + return static_cast(countSubframes) * sizeof(OutputSubframe); } static void InterleaveOutputData(const OutputSubframe& data, std::span target) {