mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 10:57:22 +08:00
Revert "Do a better job of finding default ALSA devices"
This reverts commit d65861f049.
The default device is the one with the name "default"
This commit is contained in:
@@ -773,9 +773,7 @@ static void ALSA_HotplugIteration(SDL_bool *has_default_output, SDL_bool *has_de
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_strcmp(name, "default") == 0 ||
|
if (SDL_strcmp(name, "default") == 0) {
|
||||||
SDL_strncmp(name, "default:", 8 ) == 0 ||
|
|
||||||
SDL_strncmp(name, "sysdefault:", 11 ) == 0 ) {
|
|
||||||
if (has_default < 0) {
|
if (has_default < 0) {
|
||||||
has_default = i;
|
has_default = i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user