From 4e971f44a27c2e4abc25ddf0720d287a688e0a4d Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 27 Apr 2016 13:53:23 +0100 Subject: Audio: Add sink selection to configuration files --- src/audio_core/hle/dsp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/audio_core/hle/dsp.cpp') diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp index 5759a5b9e..4d44bd2d9 100644 --- a/src/audio_core/hle/dsp.cpp +++ b/src/audio_core/hle/dsp.cpp @@ -2,8 +2,11 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include + #include "audio_core/hle/dsp.h" #include "audio_core/hle/pipe.h" +#include "audio_core/sink.h" namespace DSP { namespace HLE { @@ -35,6 +38,8 @@ static SharedMemory& WriteRegion() { return g_regions[1 - CurrentRegionIndex()]; } +static std::unique_ptr sink; + void Init() { DSP::HLE::ResetPipes(); } @@ -46,5 +51,9 @@ bool Tick() { return true; } +void SetSink(std::unique_ptr sink_) { + sink = std::move(sink_); +} + } // namespace HLE } // namespace DSP -- cgit v1.2.3