mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 03:16:26 +00:00
audio: Changed OnlyHasDefaultInputDevice to OnlyHasDefaultCaptureDevice.
This commit is contained in:
@@ -165,7 +165,7 @@ SDL_AudioDetectDevices_Default(void)
|
||||
{
|
||||
/* you have to write your own implementation if these assertions fail. */
|
||||
SDL_assert(current_audio.impl.OnlyHasDefaultOutputDevice);
|
||||
SDL_assert(current_audio.impl.OnlyHasDefaultInputDevice || !current_audio.impl.HasCaptureSupport);
|
||||
SDL_assert(current_audio.impl.OnlyHasDefaultCaptureDevice || !current_audio.impl.HasCaptureSupport);
|
||||
|
||||
SDL_AddAudioDevice(SDL_FALSE, DEFAULT_OUTPUT_DEVNAME, (void *) ((size_t) 0x1));
|
||||
if (current_audio.impl.HasCaptureSupport) {
|
||||
@@ -1111,7 +1111,7 @@ open_audio_device(const char *devname, int iscapture,
|
||||
* opens of the default system device.
|
||||
*/
|
||||
|
||||
if ((iscapture) && (current_audio.impl.OnlyHasDefaultInputDevice)) {
|
||||
if ((iscapture) && (current_audio.impl.OnlyHasDefaultCaptureDevice)) {
|
||||
if ((devname) && (SDL_strcmp(devname, DEFAULT_INPUT_DEVNAME) != 0)) {
|
||||
SDL_SetError("No such device");
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user