aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/sink/cubeb_sink.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-08-23 07:14:40 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-08-23 08:33:26 +0100
commit39c8ddcda281e5f5b125c78b55741e39a50ff254 (patch)
treeca88e6666c76d755015945c1f5f228edb47287ef /src/audio_core/sink/cubeb_sink.h
parentbc4ad5e62d6d9a8e81a56ce70b33dd3e8ae7bd5d (diff)
Pre-test opening a stream for audio backends, fall back to null if not suitable.
Diffstat (limited to 'src/audio_core/sink/cubeb_sink.h')
-rw-r--r--src/audio_core/sink/cubeb_sink.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/audio_core/sink/cubeb_sink.h b/src/audio_core/sink/cubeb_sink.h
index 3302cb98d..f49a6fdaa 100644
--- a/src/audio_core/sink/cubeb_sink.h
+++ b/src/audio_core/sink/cubeb_sink.h
@@ -97,10 +97,11 @@ private:
std::vector<std::string> ListCubebSinkDevices(bool capture);
/**
- * Get the reported latency for this sink.
+ * Check if this backend is suitable for use.
+ * Checks if enabled, its latency, whether it opens successfully, etc.
*
- * @return Minimum latency for this sink.
+ * @return True is this backend is suitable, false otherwise.
*/
-u32 GetCubebLatency();
+bool IsCubebSuitable();
} // namespace AudioCore::Sink