summaryrefslogtreecommitdiffstats
path: root/src/audio_core/hle/dsp.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-04-27 14:53:23 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2016-04-30 08:41:02 +0200
commit4e971f44a27c2e4abc25ddf0720d287a688e0a4d (patch)
treec88ce045e20e40dd022a56dbd4a5281024591e61 /src/audio_core/hle/dsp.cpp
parentAudioCore: List of sink types (diff)
downloadyuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar.gz
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar.bz2
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar.lz
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar.xz
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.tar.zst
yuzu-4e971f44a27c2e4abc25ddf0720d287a688e0a4d.zip
Diffstat (limited to 'src/audio_core/hle/dsp.cpp')
-rw-r--r--src/audio_core/hle/dsp.cpp9
1 files changed, 9 insertions, 0 deletions
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 <memory>
+
#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<AudioCore::Sink> sink;
+
void Init() {
DSP::HLE::ResetPipes();
}
@@ -46,5 +51,9 @@ bool Tick() {
return true;
}
+void SetSink(std::unique_ptr<AudioCore::Sink> sink_) {
+ sink = std::move(sink_);
+}
+
} // namespace HLE
} // namespace DSP