summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/system.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2022-10-19 06:38:12 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2022-10-19 07:16:15 +0200
commit7bd3930939dfafc463b87b6df965b8b4391f1f56 (patch)
tree48fef17d69a55a94bd6ec8f2d843ed2730032b50 /src/audio_core/renderer/system.h
parentMerge pull request #9054 from Docteh/just_lz4 (diff)
downloadyuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.gz
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.bz2
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.lz
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.xz
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.zst
yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.zip
Diffstat (limited to 'src/audio_core/renderer/system.h')
-rw-r--r--src/audio_core/renderer/system.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/audio_core/renderer/system.h b/src/audio_core/renderer/system.h
index bcbe65b07..429196e41 100644
--- a/src/audio_core/renderer/system.h
+++ b/src/audio_core/renderer/system.h
@@ -196,6 +196,20 @@ public:
*/
u32 DropVoices(CommandBuffer& command_buffer, u32 estimated_process_time, u32 time_limit);
+ /**
+ * Get the current voice drop parameter.
+ *
+ * @return The current voice drop.
+ */
+ f32 GetVoiceDropParameter() const;
+
+ /**
+ * Set the voice drop parameter.
+ *
+ * @param The new voice drop.
+ */
+ void SetVoiceDropParameter(f32 voice_drop);
+
private:
/// Core system
Core::System& core;
@@ -301,6 +315,8 @@ private:
u32 num_voices_dropped{};
/// Tick that rendering started
u64 render_start_tick{};
+ /// Parameter to control the threshold for dropping voices if the audio graph gets too large
+ f32 drop_voice_param{1.0f};
};
} // namespace AudioRenderer