audio_core: Remove global state
This commit is contained in:
parent
dca5fd291f
commit
ab3d53131a
34 changed files with 711 additions and 650 deletions
|
@ -2,7 +2,8 @@
|
|||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "audio_core/audio_core.h"
|
||||
#include "audio_core/dsp_interface.h"
|
||||
#include "core/core.h"
|
||||
#include "core/gdbstub/gdbstub.h"
|
||||
#include "core/hle/service/hid/hid.h"
|
||||
#include "core/hle/service/ir/ir.h"
|
||||
|
@ -28,8 +29,10 @@ void Apply() {
|
|||
VideoCore::g_emu_window->UpdateCurrentFramebufferLayout(layout.width, layout.height);
|
||||
}
|
||||
|
||||
AudioCore::SelectSink(values.sink_id);
|
||||
AudioCore::EnableStretching(values.enable_audio_stretching);
|
||||
if (Core::System::GetInstance().IsPoweredOn()) {
|
||||
Core::DSP().SetSink(values.sink_id);
|
||||
Core::DSP().EnableStretching(values.enable_audio_stretching);
|
||||
}
|
||||
|
||||
Service::HID::ReloadInputDevices();
|
||||
Service::IR::ReloadInputDevices();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue