|
@@ -722,10 +722,16 @@ SDL_GetAudioDeviceName(int index, int iscapture)
|
|
}
|
|
}
|
|
|
|
|
|
if ((iscapture) && (current_audio.impl.OnlyHasDefaultInputDevice)) {
|
|
if ((iscapture) && (current_audio.impl.OnlyHasDefaultInputDevice)) {
|
|
|
|
+ if (index > 0) {
|
|
|
|
+ goto no_such_device;
|
|
|
|
+ }
|
|
return DEFAULT_INPUT_DEVNAME;
|
|
return DEFAULT_INPUT_DEVNAME;
|
|
}
|
|
}
|
|
|
|
|
|
if ((!iscapture) && (current_audio.impl.OnlyHasDefaultOutputDevice)) {
|
|
if ((!iscapture) && (current_audio.impl.OnlyHasDefaultOutputDevice)) {
|
|
|
|
+ if (index > 0) {
|
|
|
|
+ goto no_such_device;
|
|
|
|
+ }
|
|
return DEFAULT_OUTPUT_DEVNAME;
|
|
return DEFAULT_OUTPUT_DEVNAME;
|
|
}
|
|
}
|
|
|
|
|