Merge pull request #7606 from booto/dtk_pos_align

DTK: Report position in increments of 0x8000
This commit is contained in:
JosJuice 2018-12-26 10:22:40 +01:00 committed by GitHub
commit 5b97ea8b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -961,7 +961,8 @@ void ExecuteCommand(u32 command_0, u32 command_1, u32 command_2, u32 output_addr
case 0x01: // Returns the current offset
INFO_LOG(DVDINTERFACE, "(Audio): Stream Status: Request Audio status AudioPos:%08" PRIx64,
s_audio_position);
WriteImmediate(static_cast<u32>(s_audio_position >> 2), output_address, reply_to_ios);
WriteImmediate(static_cast<u32>((s_audio_position & 0xffffffffffff8000ull) >> 2),
output_address, reply_to_ios);
break;
case 0x02: // Returns the start offset
INFO_LOG(DVDINTERFACE, "(Audio): Stream Status: Request Audio status CurrentStart:%08" PRIx64,
@ -1298,4 +1299,4 @@ void ScheduleReads(u64 offset, u32 length, const DiscIO::Partition& partition, u
ticks_until_completion * 1000000 / SystemTimers::GetTicksPerSecond());
}
} // namespace
} // namespace DVDInterface