test/testaudioinfo.c
changeset 2060 866052b01ee5
parent 2049 5f6550e5184f
child 3338 9de326b3099c
     1.1 --- a/test/testaudioinfo.c	Sat Oct 28 16:41:54 2006 +0000
     1.2 +++ b/test/testaudioinfo.c	Sat Oct 28 16:48:03 2006 +0000
     1.3 @@ -1,6 +1,7 @@
     1.4  #include "SDL.h"
     1.5  
     1.6 -static void print_devices(int iscapture)
     1.7 +static void
     1.8 +print_devices(int iscapture)
     1.9  {
    1.10      const char *typestr = ((iscapture) ? "capture" : "output");
    1.11      int n = SDL_GetNumAudioDevices(iscapture);
    1.12 @@ -11,8 +12,7 @@
    1.13          printf("  Driver can't detect specific devices.\n\n", typestr);
    1.14      else if (n == 0)
    1.15          printf("  No %s devices found.\n\n", typestr);
    1.16 -    else
    1.17 -    {
    1.18 +    else {
    1.19          int i;
    1.20          for (i = 0; i < n; i++) {
    1.21              printf("  %s\n", SDL_GetAudioDeviceName(i, iscapture));
    1.22 @@ -21,7 +21,8 @@
    1.23      }
    1.24  }
    1.25  
    1.26 -int main(int argc, char **argv)
    1.27 +int
    1.28 +main(int argc, char **argv)
    1.29  {
    1.30      /* Print available audio drivers */
    1.31      int n = SDL_GetNumAudioDrivers();
    1.32 @@ -50,4 +51,3 @@
    1.33      SDL_Quit();
    1.34      return 0;
    1.35  }
    1.36 -