From 39c8ddcda281e5f5b125c78b55741e39a50ff254 Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Wed, 23 Aug 2023 07:14:40 +0100 Subject: Pre-test opening a stream for audio backends, fall back to null if not suitable. --- src/audio_core/sink/sdl2_sink.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/audio_core/sink/sdl2_sink.h') diff --git a/src/audio_core/sink/sdl2_sink.h b/src/audio_core/sink/sdl2_sink.h index 27ed1ab94..9211d2e97 100644 --- a/src/audio_core/sink/sdl2_sink.h +++ b/src/audio_core/sink/sdl2_sink.h @@ -88,10 +88,11 @@ private: std::vector ListSDLSinkDevices(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 GetSDLLatency(); +bool IsSDLSuitable(); } // namespace AudioCore::Sink -- cgit v1.2.3