summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_core.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2022-09-04 06:41:06 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2022-09-04 06:41:06 +0200
commit2129d040a509754839b82b1ff6d387cb4f84f168 (patch)
treedcbc4edfb20e70e4c22566193c802ea2f4b9979e /src/audio_core/audio_core.h
parentRework audio output, connecting AudioOut into coretiming to fix desync during heavy loads. (diff)
downloadyuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar.gz
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar.bz2
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar.lz
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar.xz
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.tar.zst
yuzu-2129d040a509754839b82b1ff6d387cb4f84f168.zip
Diffstat (limited to 'src/audio_core/audio_core.h')
-rw-r--r--src/audio_core/audio_core.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/audio_core/audio_core.h b/src/audio_core/audio_core.h
index fd1e43356..ac9afefaa 100644
--- a/src/audio_core/audio_core.h
+++ b/src/audio_core/audio_core.h
@@ -65,6 +65,18 @@ public:
*/
void PauseSinks(bool pausing) const;
+ /**
+ * Toggle NVDEC state, used to avoid stall in playback.
+ *
+ * @param active - Set true if nvdec is active, otherwise false.
+ */
+ void SetNVDECActive(bool active);
+
+ /**
+ * Get NVDEC state.
+ */
+ bool IsNVDECActive() const;
+
private:
/**
* Create the sinks on startup.
@@ -79,6 +91,8 @@ private:
std::unique_ptr<Sink::Sink> input_sink;
/// The ADSP in the sysmodule
std::unique_ptr<AudioRenderer::ADSP::ADSP> adsp;
+ /// Is NVDec currently active?
+ bool nvdec_active{false};
};
} // namespace AudioCore