[APU] Switched to New XMA decoder as default

- Added codepath for "consume only" pass. This should resolve constant clicking in Source engine games.
- Added smaller performance improvements to decoder
This commit is contained in:
Gliniak
2025-12-01 23:57:53 +01:00
parent dfa70b3677
commit dd29365970
5 changed files with 23 additions and 4 deletions

View File

@@ -146,6 +146,12 @@ struct XMA_CONTEXT_DATA {
const uint32_t GetCurrentInputBufferPacketCount() const {
return GetInputBufferPacketCount(current_buffer);
}
const bool IsStreamingContext() const {
return (input_buffer_0_packet_count | input_buffer_1_packet_count) == 1;
}
const bool IsConsumeOnlyContext() const {
return (input_buffer_0_packet_count | input_buffer_1_packet_count) == 0;
}
};
static_assert_size(XMA_CONTEXT_DATA, 64);