[Mplayer-cvslog] CVS: main/libao2 ao_oss.c,1.16,1.17

Arpi of Ize arpi at mplayer.dev.hu
Tue Jan 15 23:55:31 CET 2002


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

Modified Files:
	ao_oss.c 
Log Message:
hwac3 fix for cmedia 8738 by Hans-Peter Raschke <Hans-Peter.Raschke at wintermann-datenservice.de>

Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ao_oss.c	11 Dec 2001 09:23:57 -0000	1.16
+++ ao_oss.c	15 Jan 2002 22:55:28 -0000	1.17
@@ -116,6 +116,11 @@
   if(format != AFMT_U8 && format != AFMT_S8)
     ao_data.bps*=2;
 
+  if(format == AFMT_AC3) {
+    ao_data.samplerate=rate;
+    ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
+  }
+  
   ao_data.format=format;
   ioctl (audio_fd, SNDCTL_DSP_SETFMT, &ao_data.format);
   if(format == AFMT_AC3 && ao_data.format != AFMT_AC3) {




More information about the MPlayer-cvslog mailing list