diff src/audio/dmedia/SDL_irixaudio.c @ 2060:866052b01ee5

indent is evil
author Sam Lantinga <slouken@libsdl.org>
date Sat, 28 Oct 2006 16:48:03 +0000
parents 5f6550e5184f
children 99210400e8b9
line wrap: on
line diff
--- a/src/audio/dmedia/SDL_irixaudio.c	Sat Oct 28 16:41:54 2006 +0000
+++ b/src/audio/dmedia/SDL_irixaudio.c	Sat Oct 28 16:48:03 2006 +0000
@@ -104,7 +104,7 @@
 
     /* Initialize all variables that we clean on shutdown */
     this->hidden = (struct SDL_PrivateAudioData *)
-                        SDL_malloc((sizeof *this->hidden));
+        SDL_malloc((sizeof *this->hidden));
     if (this->hidden == NULL) {
         SDL_OutOfMemory();
         return 0;
@@ -160,15 +160,17 @@
             valid = 0;
             if (audio_config) {
                 if (alSetChannels(audio_config, this->spec.channels) < 0) {
-                    if (this->spec.channels > 2) { /* can't handle > stereo? */
-                        this->spec.channels = 2;   /* try again below. */
+                    if (this->spec.channels > 2) {      /* can't handle > stereo? */
+                        this->spec.channels = 2;        /* try again below. */
                     }
                 }
 
                 if ((alSetSampFmt(audio_config, fmt) >= 0) &&
                     ((!width) || (alSetWidth(audio_config, width) >= 0)) &&
-                    (alSetQueueSize(audio_config,this->spec.samples*2) >= 0) &&
-                    (alSetChannels(audio_config, this->spec.channels) >= 0)) {
+                    (alSetQueueSize(audio_config, this->spec.samples * 2) >=
+                     0)
+                    && (alSetChannels(audio_config, this->spec.channels) >=
+                        0)) {
 
                     this->hidden->audio_port = alOpenPort("SDL audio", "w",
                                                           audio_config);
@@ -178,8 +180,8 @@
                         if (err == AL_BAD_CHANNELS) {
                             this->spec.channels = 2;
                             alSetChannels(audio_config, this->spec.channels);
-                            this->hidden->audio_port = alOpenPort("SDL audio", "w",
-                                                                 audio_config);
+                            this->hidden->audio_port =
+                                alOpenPort("SDL audio", "w", audio_config);
                         }
                     }
 
@@ -216,7 +218,7 @@
 }
 
 static int
-IRIXAUDIO_Init(SDL_AudioDriverImpl *impl)
+IRIXAUDIO_Init(SDL_AudioDriverImpl * impl)
 {
     /* Set the function pointers */
     impl->OpenDevice = DSP_OpenDevice;
@@ -224,7 +226,7 @@
     impl->WaitDevice = DSP_WaitDevice;
     impl->GetDeviceBuf = DSP_GetDeviceBuf;
     impl->CloseDevice = DSP_CloseDevice;
-    impl->OnlyHasDefaultOutputDevice = 1;  /* !!! FIXME: not true, I think. */
+    impl->OnlyHasDefaultOutputDevice = 1;       /* !!! FIXME: not true, I think. */
 
     return 1;
 }