[Mplayer-cvslog] CVS: main/libao2 ao_alsa9.c,1.28,1.29

Arpi of Ize arpi at mplayerhq.hu
Wed Dec 4 23:02:02 CET 2002


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

Modified Files:
	ao_alsa9.c 
Log Message:
OK, I think I found why the alsa9 driver was breaking surround sound.
ALSA returns the buffer size in _frames_, not bytes, so multiplying by
bytes_per_sample is needed.
patch by Tom Lees <tal26 at cam.ac.uk>


Index: ao_alsa9.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa9.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- ao_alsa9.c	4 Dec 2002 21:42:22 -0000	1.28
+++ ao_alsa9.c	4 Dec 2002 22:01:59 -0000	1.29
@@ -628,7 +628,7 @@
 	  return(0);
 	}
       else {
-	ao_data.buffersize = err;
+	ao_data.buffersize = err * bytes_per_sample;
 	if (verbose>0)
 	  printf("alsa-init: got buffersize=%i\n", ao_data.buffersize);
       }




More information about the MPlayer-cvslog mailing list