Quick-kill processing the XMA context if there's no new data available.

This commit is contained in:
Dr. Chat 2015-09-25 18:40:49 -05:00
parent f2b2cc1b6f
commit c150552b9c
1 changed files with 5 additions and 0 deletions

View File

@ -294,6 +294,11 @@ void XmaContext::DecodePackets(XMA_CONTEXT_DATA* data) {
return;
}
// No available data.
if (!data->input_buffer_0_valid && !data->input_buffer_1_valid) {
return;
}
assert_zero(data->unk_dword_9);
// XAudio Loops