diff options
Diffstat (limited to 'src/audio_core/renderer/system.h')
| -rw-r--r-- | src/audio_core/renderer/system.h | 16 |
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: | |||
| 196 | */ | 196 | */ |
| 197 | u32 DropVoices(CommandBuffer& command_buffer, u32 estimated_process_time, u32 time_limit); | 197 | u32 DropVoices(CommandBuffer& command_buffer, u32 estimated_process_time, u32 time_limit); |
| 198 | 198 | ||
| 199 | /** | ||
| 200 | * Get the current voice drop parameter. | ||
| 201 | * | ||
| 202 | * @return The current voice drop. | ||
| 203 | */ | ||
| 204 | f32 GetVoiceDropParameter() const; | ||
| 205 | |||
| 206 | /** | ||
| 207 | * Set the voice drop parameter. | ||
| 208 | * | ||
| 209 | * @param The new voice drop. | ||
| 210 | */ | ||
| 211 | void SetVoiceDropParameter(f32 voice_drop); | ||
| 212 | |||
| 199 | private: | 213 | private: |
| 200 | /// Core system | 214 | /// Core system |
| 201 | Core::System& core; | 215 | Core::System& core; |
| @@ -301,6 +315,8 @@ private: | |||
| 301 | u32 num_voices_dropped{}; | 315 | u32 num_voices_dropped{}; |
| 302 | /// Tick that rendering started | 316 | /// Tick that rendering started |
| 303 | u64 render_start_tick{}; | 317 | u64 render_start_tick{}; |
| 318 | /// Parameter to control the threshold for dropping voices if the audio graph gets too large | ||
| 319 | f32 drop_voice_param{1.0f}; | ||
| 304 | }; | 320 | }; |
| 305 | 321 | ||
| 306 | } // namespace AudioRenderer | 322 | } // namespace AudioRenderer |