summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/audio_core.h')
-rw-r--r--src/audio_core/audio_core.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/audio_core/audio_core.h b/src/audio_core/audio_core.h
index 0f7d61ee4..e33e00a3e 100644
--- a/src/audio_core/audio_core.h
+++ b/src/audio_core/audio_core.h
@@ -17,7 +17,7 @@ namespace AudioCore {
class AudioManager;
/**
- * Main audio class, sotred inside the core, and holding the audio manager, all sinks, and the ADSP.
+ * Main audio class, stored inside the core, and holding the audio manager, all sinks, and the ADSP.
*/
class AudioCore {
public:
@@ -58,26 +58,16 @@ public:
AudioRenderer::ADSP::ADSP& GetADSP();
/**
- * Pause the sink. Called from the core.
+ * Toggle NVDEC state, used to avoid stall in playback.
*
- * @param pausing - Is this pause due to an actual pause, or shutdown?
- * Unfortunately, shutdown also pauses streams, which can cause issues.
+ * @param active - Set true if nvdec is active, otherwise false.
*/
- void PauseSinks(bool pausing) const;
+ void SetNVDECActive(bool active);
/**
- * Get the size of the current stream queue.
- *
- * @return Current stream queue size.
- */
- u32 GetStreamQueue() const;
-
- /**
- * Get the size of the current stream queue.
- *
- * @param size - New stream size.
+ * Get NVDEC state.
*/
- void SetStreamQueue(u32 size);
+ bool IsNVDECActive() const;
private:
/**
@@ -93,8 +83,8 @@ private:
std::unique_ptr<Sink::Sink> input_sink;
/// The ADSP in the sysmodule
std::unique_ptr<AudioRenderer::ADSP::ADSP> adsp;
- /// Current size of the stream queue
- std::atomic<u32> estimated_queue{0};
+ /// Is NVDec currently active?
+ bool nvdec_active{false};
};
} // namespace AudioCore