Fix Travis and the build

This commit is contained in:
DrChat 2017-12-23 17:42:40 -06:00
parent 079e0e058e
commit 1b038125a1
3 changed files with 8 additions and 10 deletions

View File

@ -300,8 +300,6 @@ void XmaContext::DecodePackets(XMA_CONTEXT_DATA* data) {
return; return;
} }
assert_zero(data->unk_dword_9);
// XAudio Loops // XAudio Loops
// loop_count: // loop_count:
// - XAUDIO2_MAX_LOOP_COUNT = 254 // - XAUDIO2_MAX_LOOP_COUNT = 254

View File

@ -65,12 +65,12 @@ struct XMA_CONTEXT_DATA {
uint32_t loop_subframe_end : 3; // +14bit, XMASetLoopData uint32_t loop_subframe_end : 3; // +14bit, XMASetLoopData
uint32_t loop_subframe_skip : 3; // +17bit, XMASetLoopData might be uint32_t loop_subframe_skip : 3; // +17bit, XMASetLoopData might be
// subframe_decode_count // subframe_decode_count
uint32_t subframe_decode_count : 4; // +20bit uint32_t subframe_decode_count : 4; // +20bit
uint32_t subframe_skip_count : 3; // +24bit uint32_t subframe_skip_count : 3; // +24bit
uint32_t sample_rate : 2; // +27bit enum of sample rates uint32_t sample_rate : 2; // +27bit enum of sample rates
uint32_t is_stereo : 1; // +29bit uint32_t is_stereo : 1; // +29bit
uint32_t unk_dword_1_c : 1; // +30bit uint32_t unk_dword_1_c : 1; // +30bit
uint32_t output_buffer_valid : 1; // +31bit, XMAIsOutputBufferValid uint32_t output_buffer_valid : 1; // +31bit, XMAIsOutputBufferValid
// DWORD 2 // DWORD 2
uint32_t input_buffer_read_offset : 26; // XMAGetInputBufferReadOffset uint32_t input_buffer_read_offset : 26; // XMAGetInputBufferReadOffset

View File

@ -78,8 +78,8 @@ X_RESULT XgiApp::DispatchMessageSync(uint32_t message, uint32_t buffer_ptr,
return X_STATUS_SUCCESS; return X_STATUS_SUCCESS;
} }
case 0x000B0011: { case 0x000B0011: {
// TODO(DrChat): Figure out what this is again
} } break;
case 0x000B0012: { case 0x000B0012: {
assert_true(buffer_length == 0x14); assert_true(buffer_length == 0x14);
uint32_t session_ptr = xe::load_and_swap<uint32_t>(buffer + 0x0); uint32_t session_ptr = xe::load_and_swap<uint32_t>(buffer + 0x0);