test/testaudioinfo.c
branchSDL-ryan-multiple-audio-device
changeset 3836 7dc7327cd626
parent 3795 589bc3d060cd
equal deleted inserted replaced
3835:84aa539627c8 3836:7dc7327cd626
    26     /* Print available audio drivers */
    26     /* Print available audio drivers */
    27     int n = SDL_GetNumAudioDrivers();
    27     int n = SDL_GetNumAudioDrivers();
    28     if (n == 0) {
    28     if (n == 0) {
    29         printf("No built-in audio drivers\n\n");
    29         printf("No built-in audio drivers\n\n");
    30     } else {
    30     } else {
       
    31         int i;
    31         printf("Built-in audio drivers:\n");
    32         printf("Built-in audio drivers:\n");
    32         int i;
       
    33         for (i = 0; i < n; ++i) {
    33         for (i = 0; i < n; ++i) {
    34             printf("  %s\n", SDL_GetAudioDriver(i));
    34             printf("  %s\n", SDL_GetAudioDriver(i));
    35         }
    35         }
    36         printf("\n");
    36         printf("\n");
    37     }
    37     }