[APU] XmaContextNew: refine output buffer invalidation

This commit is contained in:
oreyg
2026-05-25 06:37:41 +02:00
committed by Radosław Gliński
parent 02a0d697cb
commit 505697f980

View File

@@ -219,10 +219,9 @@ bool XmaContextNew::Work() {
}
// Signal the game that the output buffer is full
if (remaining_subframe_blocks_in_output_buffer_ == 0) {
if (remaining_subframe_blocks_in_output_buffer_ == 0 && output_rb.empty()) {
XELOGAPU("XmaContext {}: Output ring buffer is full, invalidating output",
id());
data.output_buffer_write_offset = data.output_buffer_read_offset;
data.output_buffer_valid = 0;
}