From 954144e22bed60df3a56e63cc92dcb0c026137c6 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 27 Aug 2023 12:11:10 -0400 Subject: audio: allow more latency in cubeb initialization --- src/audio_core/sink/cubeb_sink.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/audio_core/sink/cubeb_sink.cpp') diff --git a/src/audio_core/sink/cubeb_sink.cpp b/src/audio_core/sink/cubeb_sink.cpp index 04d98a865..bbb598bc5 100644 --- a/src/audio_core/sink/cubeb_sink.cpp +++ b/src/audio_core/sink/cubeb_sink.cpp @@ -364,7 +364,7 @@ bool IsCubebSuitable() { } #endif - // Test min latency + // Get min latency cubeb_stream_params params{}; params.rate = TargetSampleRate; params.channels = 2; @@ -380,11 +380,6 @@ bool IsCubebSuitable() { } latency = std::max(latency, TargetSampleCount * 2); - if (latency > TargetSampleCount * 3) { - LOG_ERROR(Audio_Sink, "Cubeb latency is too high, it is not suitable."); - return false; - } - // Test opening a device with standard parameters cubeb_devid output_device{0}; cubeb_devid input_device{0}; -- cgit v1.2.3