Merge remote-tracking branch 'GliniakRepo/audioSkipHeaderInputOffset' into canary_pr

This commit is contained in:
Gliniak 2022-05-19 10:16:41 +02:00
commit de03165995
2 changed files with 4 additions and 2 deletions

View File

@ -320,7 +320,9 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
// No available data.
if (!data->input_buffer_0_valid && !data->input_buffer_1_valid) {
data->output_buffer_valid = 0;
// 4156081D checks specifically for offset 0x20 when both input buffers
// are invalid.
data->input_buffer_read_offset = kBitsPerHeader;
return;
}

View File

@ -134,7 +134,7 @@ class XmaContext {
public:
static const uint32_t kBytesPerPacket = 2048;
static const uint32_t kBitsPerPacket = kBytesPerPacket * 8;
static const uint32_t kBitsPerHeader = 33;
static const uint32_t kBitsPerHeader = 32;
static const uint32_t kBytesPerSample = 2;
static const uint32_t kSamplesPerFrame = 512;