diff src/audio/dmedia/SDL_irixaudio.c @ 2043:adf732f1f016

Formatting update
author Sam Lantinga <slouken@libsdl.org>
date Sun, 24 Sep 2006 15:56:55 +0000
parents 7590aaf89a60
children 5f6550e5184f c8b3d3d13ed1
line wrap: on
line diff
--- a/src/audio/dmedia/SDL_irixaudio.c	Sun Sep 24 15:56:36 2006 +0000
+++ b/src/audio/dmedia/SDL_irixaudio.c	Sun Sep 24 15:56:55 2006 +0000
@@ -176,27 +176,27 @@
         spec->format = test_format;
 
         switch (test_format) {
-            case AUDIO_S8:
-                width = AL_SAMPLE_8;
-                fmt = AL_SAMPFMT_TWOSCOMP;
-                break;
+        case AUDIO_S8:
+            width = AL_SAMPLE_8;
+            fmt = AL_SAMPFMT_TWOSCOMP;
+            break;
 
-            case AUDIO_S16SYS:
-                width = AL_SAMPLE_16;
-                fmt = AL_SAMPFMT_TWOSCOMP;
-                break;
+        case AUDIO_S16SYS:
+            width = AL_SAMPLE_16;
+            fmt = AL_SAMPFMT_TWOSCOMP;
+            break;
 
-            case AUDIO_F32SYS:
-                width = 0;  /* not used here... */
-                fmt = AL_SAMPFMT_FLOAT;
-                break;
+        case AUDIO_F32SYS:
+            width = 0;          /* not used here... */
+            fmt = AL_SAMPFMT_FLOAT;
+            break;
 
             /* Docs say there is int24, but not int32.... */
 
-            default:
-                valid = 0;
-                test_format = SDL_NextAudioFormat();
-                break;
+        default:
+            valid = 0;
+            test_format = SDL_NextAudioFormat();
+            break;
         }
 
         if (valid) {
@@ -204,8 +204,8 @@
             valid = 0;
             if (audio_config) {
                 if (alSetChannels(audio_config, spec->channels) < 0) {
-                    if (spec->channels > 2) {  /* can't handle > stereo? */
-                        spec->channels = 2;  /* try again below. */
+                    if (spec->channels > 2) {   /* can't handle > stereo? */
+                        spec->channels = 2;     /* try again below. */
                     }
                 }