diff options
| author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-09-04 05:41:06 +0100 |
|---|---|---|
| committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-09-04 05:41:06 +0100 |
| commit | 2129d040a509754839b82b1ff6d387cb4f84f168 (patch) | |
| tree | dcbc4edfb20e70e4c22566193c802ea2f4b9979e /src/audio_core/audio_core.h | |
| parent | ea9ff71725113b8dbb159917c57aa536bba0cb53 (diff) | |
Don't stall with nvdec
Diffstat (limited to 'src/audio_core/audio_core.h')
| -rw-r--r-- | src/audio_core/audio_core.h | 14 |
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 |
