mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 06:10:00 +00:00
sdl2_sink: Distinguish between capture and non-capture device names
The function prototype appears to care whether we are loading capture devices or not, and SDL_GetAudioDeviceName has a parameter to use it, but for some reason it isn't. This puts `capture` where it goes.
This commit is contained in:
parent
5c7eef3756
commit
9fe077635e
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ std::vector<std::string> ListSDLSinkDevices(bool capture) {
|
||||||
|
|
||||||
const int device_count = SDL_GetNumAudioDevices(capture);
|
const int device_count = SDL_GetNumAudioDevices(capture);
|
||||||
for (int i = 0; i < device_count; ++i) {
|
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) {
|
if (name != nullptr) {
|
||||||
device_list.emplace_back(name);
|
device_list.emplace_back(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue