summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-10-16 09:15:54 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2022-10-16 09:15:54 +0200
commit9fe077635e00aba362034a694c5d1a701abc288a (patch)
treea6f828773944376034328a58bbcd4efb392f36bd /src
parentsdl2_sink: Check for null string when loading SDL audio devices (diff)
downloadyuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar.gz
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar.bz2
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar.lz
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar.xz
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.tar.zst
yuzu-9fe077635e00aba362034a694c5d1a701abc288a.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/sink/sdl2_sink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/sink/sdl2_sink.cpp b/src/audio_core/sink/sdl2_sink.cpp
index dee47cf0e..cc13c6254 100644
--- a/src/audio_core/sink/sdl2_sink.cpp
+++ b/src/audio_core/sink/sdl2_sink.cpp
@@ -230,7 +230,7 @@ std::vector<std::string> ListSDLSinkDevices(bool capture) {
const int device_count = SDL_GetNumAudioDevices(capture);
for (int i = 0; i < device_count; ++i) {
- const char* name = SDL_GetAudioDeviceName(i, 0);
+ const char* name = SDL_GetAudioDeviceName(i, capture);
if (name != nullptr) {
device_list.emplace_back(name);
}