Skip to content

Commit

Permalink
Merge pull request #7606 from booto/dtk_pos_align
Browse files Browse the repository at this point in the history
DTK: Report position in increments of 0x8000
  • Loading branch information
JosJuice committed Dec 26, 2018
2 parents 2ff1bfd + 1ab390c commit 5b97ea8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Core/HW/DVD/DVDInterface.cpp
Expand Up @@ -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,
Expand Down Expand Up @@ -1298,4 +1299,4 @@ void ScheduleReads(u64 offset, u32 length, const DiscIO::Partition& partition, u
ticks_until_completion * 1000000 / SystemTimers::GetTicksPerSecond());
}

} // namespace
} // namespace DVDInterface

0 comments on commit 5b97ea8

Please sign in to comment.