summaryrefslogtreecommitdiffstats
path: root/src/audio_core/hle/dsp.h
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.h
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.h')
-rw-r--r--src/audio_core/hle/dsp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/audio_core/hle/dsp.h b/src/audio_core/hle/dsp.h
index f0f125284..4f2410c27 100644
--- a/src/audio_core/hle/dsp.h
+++ b/src/audio_core/hle/dsp.h
@@ -6,6 +6,7 @@
#include <array>
#include <cstddef>
+#include <memory>
#include <type_traits>
#include "audio_core/hle/common.h"
@@ -15,6 +16,10 @@
#include "common/common_types.h"
#include "common/swap.h"
+namespace AudioCore {
+class Sink;
+}
+
namespace DSP {
namespace HLE {
@@ -535,5 +540,11 @@ void Shutdown();
*/
bool Tick();
+/**
+ * Set the output sink. This must be called before calling Tick().
+ * @param sink The sink to which audio will be output to.
+ */
+void SetSink(std::unique_ptr<AudioCore::Sink> sink);
+
} // namespace HLE
} // namespace DSP