diff options
author | bunnei <bunneidev@gmail.com> | 2016-04-30 09:49:11 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-04-30 09:49:11 +0200 |
commit | c1f0044a4b10bdff45464e5957f7950a6059d0c9 (patch) | |
tree | d9b4673f92da936ce763148f70b82bc7401dd968 /src/audio_core/hle/dsp.h | |
parent | Merge pull request #1650 from JamePeng/update-the-ndm-code (diff) | |
parent | Audio: Add sink selection to configuration files (diff) | |
download | yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar.gz yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar.bz2 yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar.lz yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar.xz yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.tar.zst yuzu-c1f0044a4b10bdff45464e5957f7950a6059d0c9.zip |
Diffstat (limited to 'src/audio_core/hle/dsp.h')
-rw-r--r-- | src/audio_core/hle/dsp.h | 11 |
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 |