diff options
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/audio_core.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/audio_core/audio_core.cpp b/src/audio_core/audio_core.cpp index 8e19ec0c4..0b36dbb03 100644 --- a/src/audio_core/audio_core.cpp +++ b/src/audio_core/audio_core.cpp @@ -42,10 +42,18 @@ void Init() { } void AddAddressSpace(Kernel::VMManager& address_space) { - auto r0_vma = address_space.MapBackingMemory(DSP::HLE::region0_base, reinterpret_cast<u8*>(&DSP::HLE::g_regions[0]), sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO).MoveFrom(); + auto r0_vma = address_space + .MapBackingMemory(DSP::HLE::region0_base, + reinterpret_cast<u8*>(&DSP::HLE::g_regions[0]), + sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO) + .MoveFrom(); address_space.Reprotect(r0_vma, Kernel::VMAPermission::ReadWrite); - auto r1_vma = address_space.MapBackingMemory(DSP::HLE::region1_base, reinterpret_cast<u8*>(&DSP::HLE::g_regions[1]), sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO).MoveFrom(); + auto r1_vma = address_space + .MapBackingMemory(DSP::HLE::region1_base, + reinterpret_cast<u8*>(&DSP::HLE::g_regions[1]), + sizeof(DSP::HLE::SharedMemory), Kernel::MemoryState::IO) + .MoveFrom(); address_space.Reprotect(r1_vma, Kernel::VMAPermission::ReadWrite); } @@ -58,9 +66,9 @@ void SelectSink(std::string sink_id) { return; } - auto iter = std::find_if(g_sink_details.begin(), g_sink_details.end(), [sink_id](const auto& sink_detail) { - return sink_detail.id == sink_id; - }); + auto iter = + std::find_if(g_sink_details.begin(), g_sink_details.end(), + [sink_id](const auto& sink_detail) { return sink_detail.id == sink_id; }); if (iter == g_sink_details.end()) { LOG_ERROR(Audio, "AudioCore::SelectSink given invalid sink_id"); |