aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/system_manager.cpp
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2023-03-18 20:52:02 +0000
committerBilly Laws <blaws05@gmail.com>2023-03-26 22:48:57 +0100
commit7e7ad78aaf9e30c6d58ba25f0d67946378f2a54e (patch)
tree7a5e37809980a7c4988df5845e6daf161d7e859f /src/audio_core/renderer/system_manager.cpp
parent06e6414a57d9ee6b21035eed1de5ccb082c28ac9 (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/system_manager.cpp')
-rw-r--r--src/audio_core/renderer/system_manager.cpp1
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 ce631f8108..9ddfa4a91d 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()},