From 1efe80bd101139e50717cba764044597b92b9edc Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Fri, 9 Oct 2020 14:15:02 -0300 Subject: [PATCH] Update cubeb and request a persistent stream session --- externals/cubeb | 2 +- src/audio_core/cubeb_sink.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externals/cubeb b/externals/cubeb index 616d773441..1d66483ad2 160000 --- a/externals/cubeb +++ b/externals/cubeb @@ -1 +1 @@ -Subproject commit 616d773441b5355800ce64197a699e6cd6b36172 +Subproject commit 1d66483ad2b93f0e00e175f9480c771af90003a7 diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 88dcf3fef8..ec09f7030f 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -40,7 +40,7 @@ CubebSink::CubebSink(std::string_view target_device_name) : impl(std::make_uniqu params.channels = 2; params.layout = CUBEB_LAYOUT_STEREO; params.format = CUBEB_SAMPLE_S16NE; - params.prefs = CUBEB_STREAM_PREF_NONE; + params.prefs = CUBEB_STREAM_PREF_PERSIST; u32 minimum_latency = 100 * impl->sample_rate / 1000; // Firefox default if (cubeb_get_min_latency(impl->ctx, ¶ms, &minimum_latency) != CUBEB_OK) {