Skip work in ReadChannelSamples if no new samples needed

This commit is contained in:
PJB3005
2026-03-19 20:06:02 +01:00
parent bc1e2cb31f
commit 34e0da4a00
+4
View File
@@ -167,6 +167,10 @@ static void SDLCALL ReadChannelSamples(
int additional_amount,
int) {
if (additional_amount == 0) {
return;
}
const auto index = static_cast<u32>(reinterpret_cast<uintptr_t>(userdata));
auto& channel = JASDsp::CH_BUF[index];
auto& aux = ChannelAux[index];