-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Two questions:
After disabling all audio recording devices, call SDL_GetAudioRecordingDevices(); You will still receive one device unless you reinitialize the audio. And this device can also be open
When plugging in and unplugging the audio recording device, it did not automatically switch to the default capture device as described in the documentAs for Android:
I don't have a convenient way to test either of these issues on Android at the moment (and last time I tried, I couldn't coerce Android to let me use multiple audio devices at the same time...but that was with playback, not recording).
@slouken, can you try to reproduce this real fast on Android, when you get a moment? Basically I just stuck a thing in one of the test apps to SDL_Log() the items returned by SDL_GetAudioRecordingDevices()...
} else if ((event->type == SDL_EVENT_KEY_DOWN) && (event->key.key == SDLK_SPACE)) { SDL_Log("SPACE WAS PRESSED!"); SDL_AudioDeviceID *devs = SDL_GetAudioRecordingDevices(NULL); if (devs) { for (SDL_AudioDeviceID *i = devs; *i; i++) { SDL_Log("RECORDING DEVICE: %s", SDL_GetAudioDeviceName(*i)); } SDL_free(devs); } }