mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 02:46:08 +08:00
testsurround: Log available audio output devices at the start.
This commit is contained in:
@@ -183,6 +183,11 @@ int main(int argc, char *argv[])
|
|||||||
devcount = 0;
|
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++) {
|
for (i = 0; i < devcount; i++) {
|
||||||
SDL_AudioStream *stream = NULL;
|
SDL_AudioStream *stream = NULL;
|
||||||
char *devname = SDL_GetAudioDeviceName(devices[i]);
|
char *devname = SDL_GetAudioDeviceName(devices[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user