mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-01 19:59:38 +00:00
Merge pull request #4483 from RoadrunnerWMC/audio-phys-addr-masking-fix
DSP: Add address mask for physical pointers to audio data buffers
This commit is contained in:
commit
1d597db846
1 changed files with 3 additions and 1 deletions
|
@ -284,7 +284,9 @@ bool Source::DequeueBuffer() {
|
||||||
state.adpcm_state.yn2 = buf.adpcm_yn[1];
|
state.adpcm_state.yn2 = buf.adpcm_yn[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
const u8* const memory = Memory::GetPhysicalPointer(buf.physical_address);
|
// 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) {
|
if (memory) {
|
||||||
const unsigned num_channels = buf.mono_or_stereo == MonoOrStereo::Stereo ? 2 : 1;
|
const unsigned num_channels = buf.mono_or_stereo == MonoOrStereo::Stereo ? 2 : 1;
|
||||||
switch (buf.format) {
|
switch (buf.format) {
|
||||||
|
|
Loading…
Reference in a new issue