diff src/audio/dc/SDL_dcaudio.c @ 2043:adf732f1f016

Formatting update
author Sam Lantinga <slouken@libsdl.org>
date Sun, 24 Sep 2006 15:56:55 +0000
parents 8c05b048c32c
children 5f6550e5184f c8b3d3d13ed1
line wrap: on
line diff
--- a/src/audio/dc/SDL_dcaudio.c	Sun Sep 24 15:56:36 2006 +0000
+++ b/src/audio/dc/SDL_dcaudio.c	Sun Sep 24 15:56:55 2006 +0000
@@ -226,24 +226,24 @@
         spec->format = test_format;
         switch (test_format) {
             /* only formats Dreamcast accepts... */
-            case AUDIO_S8:
-            case AUDIO_S16LSB:
-                valid_datatype = 1;
-                break;
+        case AUDIO_S8:
+        case AUDIO_S16LSB:
+            valid_datatype = 1;
+            break;
 
-            default:
-                test_format = SDL_NextAudioFormat();
-                break;
+        default:
+            test_format = SDL_NextAudioFormat();
+            break;
         }
     }
 
-    if (!valid_datatype) {  /* shouldn't happen, but just in case... */
+    if (!valid_datatype) {      /* shouldn't happen, but just in case... */
         SDL_SetError("Unsupported audio format");
         return (-1);
     }
 
     if (spec->channels > 2)
-        spec->channels = 2;  /* no more than stereo on the Dreamcast. */
+        spec->channels = 2;     /* no more than stereo on the Dreamcast. */
 
     /* Update the fragment size as size in bytes */
     SDL_CalculateAudioSpec(spec);