Skip to content

Android multi audio device issues #14462

@icculus

Description

@icculus

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 document

As 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);
        }
    }

Originally posted by @icculus in #13317

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions