audio: SDL_GetAudioDeviceName() now works with the default device IDs.

Fixes #14615.
This commit is contained in:
Ryan C. Gordon
2025-12-08 11:24:21 -05:00
parent a35639c7b5
commit 6f774908fe
3 changed files with 18 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
}
SDL_Log("Using audio driver: %s", SDL_GetCurrentAudioDriver());
SDL_Log("Current audio device name: %s", SDL_GetAudioDeviceName(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK));
stream = SDL_OpenAudioDeviceStream(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &wave.spec, NULL, NULL);
if (!stream) {