Skip work in ReadChannelSamples if no new samples needed

This commit is contained in:
PJB3005
2026-03-19 20:06:02 +01:00
parent 6df246eb06
commit 5419d357d8
+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];