summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/system.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-20 22:17:26 +0200
committerGitHub <noreply@github.com>2022-10-20 22:17:26 +0200
commitc0b1bdd23735c9668acad5f82186059194a27bf7 (patch)
tree5a11236068780a605ccd9d962750b56080c01acb /src/audio_core/renderer/system.h
parentMerge pull request #9094 from lioncash/fixed (diff)
parentUpdate audio_core for firmware 15.0.0 (diff)
downloadyuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar.gz
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar.bz2
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar.lz
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar.xz
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.tar.zst
yuzu-c0b1bdd23735c9668acad5f82186059194a27bf7.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