Memory: move GetPhysicalPointer and IsValidPhysicalAddress into class
This commit is contained in:
parent
cfee59c6db
commit
296c458e0e
18 changed files with 76 additions and 65 deletions
|
@ -290,7 +290,7 @@ bool Source::DequeueBuffer() {
|
|||
|
||||
// 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);
|
||||
const u8* const memory = memory_system->GetPhysicalPointer(buf.physical_address & 0xFFFFFFFC);
|
||||
if (memory) {
|
||||
const unsigned num_channels = buf.mono_or_stereo == MonoOrStereo::Stereo ? 2 : 1;
|
||||
switch (buf.format) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue