diff options
author | Billy Laws <blaws05@gmail.com> | 2023-03-18 20:52:02 +0000 |
---|---|---|
committer | Billy Laws <blaws05@gmail.com> | 2023-03-26 22:48:57 +0100 |
commit | d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac (patch) | |
tree | 7a5e37809980a7c4988df5845e6daf161d7e859f /src/audio_core/renderer | |
parent | 8da1a4ea22964728782e29a392e088c510951355 (diff) |
audio: Interpolate system manager sample count using host sink sample info
This avoids the need to stall if the host sink sporadically misses the deadline, in such a case the previous implementation would report them samples as being played on-time, causing the guest to send more samples and leading to a gradual buildup.
Diffstat (limited to 'src/audio_core/renderer')
-rw-r--r-- | src/audio_core/renderer/system_manager.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/audio_core/renderer/system_manager.cpp b/src/audio_core/renderer/system_manager.cpp index ce631f810..9ddfa4a91 100644 --- a/src/audio_core/renderer/system_manager.cpp +++ b/src/audio_core/renderer/system_manager.cpp @@ -15,7 +15,6 @@ MICROPROFILE_DEFINE(Audio_RenderSystemManager, "Audio", "Render System Manager", MP_RGB(60, 19, 97)); namespace AudioCore::AudioRenderer { -constexpr std::chrono::nanoseconds RENDER_TIME{5'000'000UL}; SystemManager::SystemManager(Core::System& core_) : core{core_}, adsp{core.AudioCore().GetADSP()}, mailbox{adsp.GetRenderMailbox()}, |