[Mplayer-cvslog] CVS: main/libao2 ao_sun.c,1.11,1.12

Jürgen Keil jkeil at mplayer.dev.hu
Fri Dec 14 21:13:20 CET 2001


Update of /cvsroot/mplayer/main/libao2
In directory mplayer:/var/tmp.root/cvs-serv11247

Modified Files:
	ao_sun.c 
Log Message:
Use $AUDIODEV environment variable as the default audio device on solaris, if
available.


Index: ao_sun.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sun.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ao_sun.c	26 Nov 2001 11:30:35 -0000	1.11
+++ ao_sun.c	14 Dec 2001 20:13:17 -0000	1.12
@@ -42,7 +42,7 @@
 #endif
 
 
-static char *audio_dev = "/dev/audio";
+static char *audio_dev = NULL;
 static int queued_bursts = 0;
 static int queued_samples = 0;
 static int bytes_per_sample = 0;
@@ -224,6 +224,11 @@
 
     audio_info_t info;
     int ok;
+
+    if (audio_dev == NULL) {
+	if ((audio_dev = getenv("AUDIODEV")) == NULL)
+	    audio_dev = "/dev/audio";
+    }
 
     if (ao_subdevice) audio_dev = ao_subdevice;
 




More information about the MPlayer-cvslog mailing list