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

Arpi of Ize arpi at mplayerhq.hu
Mon Oct 7 21:56:29 CEST 2002


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

Modified Files:
	ao_alsa5.c 
Log Message:
updated for libaf... 
please someone verify this, i'm not sure it's ok, looks weird:
    alsa_format.voices = ao_data.channels*2;


Index: ao_alsa5.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa5.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ao_alsa5.c	29 Apr 2002 16:53:38 -0000	1.11
+++ ao_alsa5.c	7 Oct 2002 19:56:26 -0000	1.12
@@ -67,9 +67,9 @@
     }
 
     ao_data.format = format;
-    ao_data.channels = channels - 1;
+    ao_data.channels = channels;
     ao_data.samplerate = rate_hz;
-    ao_data.bps = ao_data.samplerate*(ao_data.channels+1);
+    ao_data.bps = ao_data.samplerate*ao_data.channels;
     ao_data.outburst = OUTBURST;
     ao_data.buffersize = 16384;
 
@@ -232,7 +232,7 @@
     }
 
     mp_msg(MSGT_AO, MSGL_INFO, "AUDIO: %d Hz/%d channels/%d bps/%d bytes buffer/%s\n",
-	ao_data.samplerate, ao_data.channels+1, ao_data.bps, ao_data.buffersize,
+	ao_data.samplerate, ao_data.channels, ao_data.bps, ao_data.buffersize,
 	snd_pcm_get_format_name(alsa_format.format));
     return(1);
 }




More information about the MPlayer-cvslog mailing list