testsurround: Log available audio output devices at the start.

This commit is contained in:
Ryan C. Gordon 2023-07-30 11:57:30 -04:00
parent ae3090c387
commit b0edd23c00
No known key found for this signature in database
GPG Key ID: FA148B892AB48044

View File

@ -183,6 +183,11 @@ int main(int argc, char *argv[])
devcount = 0;
}
SDL_Log("Available audio devices:");
for (i = 0; i < devcount; i++) {
SDL_Log("%s", SDL_GetAudioDeviceName(devices[i]));
}
for (i = 0; i < devcount; i++) {
SDL_AudioStream *stream = NULL;
char *devname = SDL_GetAudioDeviceName(devices[i]);