diff options
| -rw-r--r-- | src/audio_core/sink/cubeb_sink.cpp | 7 | ||||
| -rw-r--r-- | src/audio_core/sink/sink_details.cpp | 4 |
2 files changed, 3 insertions, 8 deletions
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() { | |||
| 364 | } | 364 | } |
| 365 | #endif | 365 | #endif |
| 366 | 366 | ||
| 367 | // Test min latency | 367 | // Get min latency |
| 368 | cubeb_stream_params params{}; | 368 | cubeb_stream_params params{}; |
| 369 | params.rate = TargetSampleRate; | 369 | params.rate = TargetSampleRate; |
| 370 | params.channels = 2; | 370 | params.channels = 2; |
| @@ -380,11 +380,6 @@ bool IsCubebSuitable() { | |||
| 380 | } | 380 | } |
| 381 | latency = std::max(latency, TargetSampleCount * 2); | 381 | latency = std::max(latency, TargetSampleCount * 2); |
| 382 | 382 | ||
| 383 | if (latency > TargetSampleCount * 3) { | ||
| 384 | LOG_ERROR(Audio_Sink, "Cubeb latency is too high, it is not suitable."); | ||
| 385 | return false; | ||
| 386 | } | ||
| 387 | |||
| 388 | // Test opening a device with standard parameters | 383 | // Test opening a device with standard parameters |
| 389 | cubeb_devid output_device{0}; | 384 | cubeb_devid output_device{0}; |
| 390 | cubeb_devid input_device{0}; | 385 | cubeb_devid input_device{0}; |
diff --git a/src/audio_core/sink/sink_details.cpp b/src/audio_core/sink/sink_details.cpp index 6bec8ee7c..7c9a4e3ac 100644 --- a/src/audio_core/sink/sink_details.cpp +++ b/src/audio_core/sink/sink_details.cpp | |||
| @@ -83,8 +83,8 @@ const SinkDetails& GetOutputSinkDetails(Settings::AudioEngine sink_id) { | |||
| 83 | break; | 83 | break; |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | LOG_ERROR(Service_Audio, "Auto-selecting the {} backend", | 86 | LOG_INFO(Service_Audio, "Auto-selecting the {} backend", |
| 87 | Settings::CanonicalizeEnum(iter->id)); | 87 | Settings::CanonicalizeEnum(iter->id)); |
| 88 | } else { | 88 | } else { |
| 89 | if (iter != std::end(sink_details) && !iter->is_suitable()) { | 89 | if (iter != std::end(sink_details) && !iter->is_suitable()) { |
| 90 | LOG_ERROR(Service_Audio, "Selected backend {} is not suitable, falling back to null", | 90 | LOG_ERROR(Service_Audio, "Selected backend {} is not suitable, falling back to null", |