changeset 26101:a65168348ad5

cosmetics: reindent, detabify
author diego
date Sat, 01 Mar 2008 09:04:00 +0000
parents fb1ef5528f05
children 5eb017bb1568
files libao2/audio_out.c
diffstat 1 files changed, 44 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/audio_out.c	Sat Mar 01 08:56:28 2008 +0000
+++ b/libao2/audio_out.c	Sat Mar 01 09:04:00 2008 +0000
@@ -21,8 +21,8 @@
 extern ao_functions_t audio_out_jack;
 extern ao_functions_t audio_out_openal;
 extern ao_functions_t audio_out_null;
- extern ao_functions_t audio_out_alsa5;
- extern ao_functions_t audio_out_alsa;
+extern ao_functions_t audio_out_alsa5;
+extern ao_functions_t audio_out_alsa;
 extern ao_functions_t audio_out_nas;
 extern ao_functions_t audio_out_sdl;
 extern ao_functions_t audio_out_sun;
@@ -46,19 +46,19 @@
         &audio_out_win32,
 #endif
 #ifdef MACOSX
-	&audio_out_macosx,
+        &audio_out_macosx,
 #endif
 #ifdef USE_OSS_AUDIO
         &audio_out_oss,
 #endif
 #ifdef HAVE_ALSA1X
-	&audio_out_alsa,
+        &audio_out_alsa,
 #endif
 #ifdef HAVE_ALSA9
-	&audio_out_alsa,
+        &audio_out_alsa,
 #endif
 #ifdef HAVE_ALSA5
-	&audio_out_alsa5,
+        &audio_out_alsa5,
 #endif
 #ifdef USE_SGI_AUDIO
         &audio_out_sgi,
@@ -80,7 +80,7 @@
         &audio_out_jack,
 #endif
 #ifdef HAVE_NAS
-	&audio_out_nas,
+        &audio_out_nas,
 #endif
 #ifdef HAVE_SDL
         &audio_out_sdl,
@@ -88,7 +88,7 @@
 #ifdef USE_OPENAL
         &audio_out_openal,
 #endif
-	&audio_out_mpegpes,
+        &audio_out_mpegpes,
 #ifdef HAVE_DXR2
         &audio_out_dxr2,
 #endif
@@ -100,19 +100,19 @@
 #endif
         &audio_out_null,
 // should not be auto-selected:
-	&audio_out_pcm,
-	NULL
+        &audio_out_pcm,
+        NULL
 };
 
 void list_audio_out(void){
-      int i=0;
-      mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AvailableAudioOutputDrivers);
-      mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_AUDIO_OUTPUTS\n");
-      while (audio_out_drivers[i]) {
+    int i=0;
+    mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AvailableAudioOutputDrivers);
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_AUDIO_OUTPUTS\n");
+    while (audio_out_drivers[i]) {
         const ao_info_t *info = audio_out_drivers[i++]->info;
-	mp_msg(MSGT_GLOBAL, MSGL_INFO,"\t%s\t%s\n", info->short_name, info->name);
-      }
-      mp_msg(MSGT_GLOBAL, MSGL_INFO,"\n");
+        mp_msg(MSGT_GLOBAL, MSGL_INFO,"\t%s\t%s\n", info->short_name, info->name);
+    }
+    mp_msg(MSGT_GLOBAL, MSGL_INFO,"\n");
 }
 
 const ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate,int channels,int format,int flags){
@@ -123,42 +123,42 @@
         char* ao=ao_list[0];
         int ao_len;
         if (strncmp(ao, "alsa9", 5) == 0 || strncmp(ao, "alsa1x", 6) == 0) {
-          mp_msg(MSGT_AO, MSGL_FATAL, MSGTR_AO_ALSA9_1x_Removed);
-          exit_player(NULL);
+            mp_msg(MSGT_AO, MSGL_FATAL, MSGTR_AO_ALSA9_1x_Removed);
+            exit_player(NULL);
         }
         if (ao_subdevice) {
-          free(ao_subdevice);
-          ao_subdevice = NULL;
+            free(ao_subdevice);
+            ao_subdevice = NULL;
+        }
+        ao_subdevice=strchr(ao,':');
+        if(ao_subdevice){
+            ao_len = ao_subdevice - ao;
+            ao_subdevice = strdup(&ao[ao_len + 1]);
         }
-	ao_subdevice=strchr(ao,':');
-	if(ao_subdevice){
-	    ao_len = ao_subdevice - ao;
-	    ao_subdevice = strdup(&ao[ao_len + 1]);
-	}
-	else
-	    ao_len = strlen(ao);
-	for(i=0;audio_out_drivers[i];i++){
-	    const ao_functions_t* audio_out=audio_out_drivers[i];
-	    if(!strncmp(audio_out->info->short_name,ao,ao_len)){
-		// name matches, try it
-		if(audio_out->init(rate,channels,format,flags))
-		    return audio_out; // success!
-	    }
-	}
+        else
+            ao_len = strlen(ao);
+        for(i=0;audio_out_drivers[i];i++){
+            const ao_functions_t* audio_out=audio_out_drivers[i];
+            if(!strncmp(audio_out->info->short_name,ao,ao_len)){
+                // name matches, try it
+                if(audio_out->init(rate,channels,format,flags))
+                    return audio_out; // success!
+            }
+        }
         // continue...
-	++ao_list;
-	if(!(ao_list[0])) return NULL; // do NOT fallback to others
+        ++ao_list;
+        if(!(ao_list[0])) return NULL; // do NOT fallback to others
       }
     if (ao_subdevice) {
-      free(ao_subdevice);
-      ao_subdevice = NULL;
+        free(ao_subdevice);
+        ao_subdevice = NULL;
     }
     // now try the rest...
     for(i=0;audio_out_drivers[i];i++){
-	const ao_functions_t* audio_out=audio_out_drivers[i];
-//	if(audio_out->control(AOCONTROL_QUERY_FORMAT, (int)format) == CONTROL_TRUE)
-	if(audio_out->init(rate,channels,format,flags))
-	    return audio_out; // success!
+        const ao_functions_t* audio_out=audio_out_drivers[i];
+//        if(audio_out->control(AOCONTROL_QUERY_FORMAT, (int)format) == CONTROL_TRUE)
+        if(audio_out->init(rate,channels,format,flags))
+            return audio_out; // success!
     }
     return NULL;
 }