DSP: Add a comment about physical address masking

See @wwylele's comment on PR 4483 for more details on what causes this behavior.
This commit is contained in:
RoadrunnerWMC 2018-12-03 12:22:11 -07:00
parent 3aff585f32
commit 008ef1fd71
1 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,8 @@ bool Source::DequeueBuffer() {
state.adpcm_state.yn2 = buf.adpcm_yn[1];
}
// This physical address masking occurs due to how the DSP DMA hardware is configured by the
// firmware.
const u8* const memory = Memory::GetPhysicalPointer(buf.physical_address & 0xFFFFFFFC);
if (memory) {
const unsigned num_channels = buf.mono_or_stereo == MonoOrStereo::Stereo ? 2 : 1;