summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink/sdl2_sink.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-27 01:14:47 +0200
committerGitHub <noreply@github.com>2023-08-27 01:14:47 +0200
commit84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a (patch)
treee1c74b72baa7deefae9e08e3d46bb5314080cabb /src/audio_core/sink/sdl2_sink.h
parentMerge pull request #11350 from BenjaminHalko/button-padding (diff)
parentPre-test opening a stream for audio backends, fall back to null if not suitable. (diff)
downloadyuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar.gz
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar.bz2
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar.lz
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar.xz
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.tar.zst
yuzu-84b384fbeafcb49f7ded1300cfc9dfa319a2fd3a.zip
Diffstat (limited to 'src/audio_core/sink/sdl2_sink.h')
-rw-r--r--src/audio_core/sink/sdl2_sink.h7
1 files changed, 4 insertions, 3 deletions
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<std::string> 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