summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-29 01:14:33 +0200
committerGitHub <noreply@github.com>2023-08-29 01:14:33 +0200
commit199de26995e8127524e41a82dced575b0fd2b7d1 (patch)
tree0272369ae59d8d72b8cce8d2115256d6088f9991
parentMerge pull request #11389 from FernandoS27/discard-fix (diff)
parentaudio: allow more latency in cubeb initialization (diff)
downloadyuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar.gz
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar.bz2
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar.lz
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar.xz
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.tar.zst
yuzu-199de26995e8127524e41a82dced575b0fd2b7d1.zip
-rw-r--r--src/audio_core/sink/cubeb_sink.cpp7
-rw-r--r--src/audio_core/sink/sink_details.cpp4
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() {
}
#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};
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) {
break;
}
}
- LOG_ERROR(Service_Audio, "Auto-selecting the {} backend",
- Settings::CanonicalizeEnum(iter->id));
+ LOG_INFO(Service_Audio, "Auto-selecting the {} backend",
+ Settings::CanonicalizeEnum(iter->id));
} else {
if (iter != std::end(sink_details) && !iter->is_suitable()) {
LOG_ERROR(Service_Audio, "Selected backend {} is not suitable, falling back to null",