DSP now works... committing this!!

This commit is contained in:
Hamish Milne 2020-03-27 22:19:29 +00:00
parent 5604613642
commit 3d1180ee21
3 changed files with 20 additions and 9 deletions

View file

@ -1,3 +1,4 @@
#pragma optimize("", off)
// Copyright 2017 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
@ -14,7 +15,11 @@
namespace AudioCore {
DspInterface::DspInterface() = default;
DspInterface::~DspInterface() = default;
DspInterface::~DspInterface() {
LOG_WARNING(Audio_DSP, "c1");
sink.reset();
LOG_WARNING(Audio_DSP, "c2");
}
void DspInterface::SetSink(const std::string& sink_id, const std::string& audio_device) {
sink = CreateSinkFromID(Settings::values.sink_id, Settings::values.audio_device_id);