[MPlayer-cvslog] r28640 - trunk/libao2/ao_oss.c

reimar subversion at mplayerhq.hu
Tue Feb 17 22:08:23 CET 2009


Author: reimar
Date: Tue Feb 17 22:08:22 2009
New Revision: 28640

Log:
Set samplerate in reset also for AC3, and set it before the format in that
case (no idea why, but it is done this way in init, so it is consistent).

Modified:
   trunk/libao2/ao_oss.c

Modified: trunk/libao2/ao_oss.c
==============================================================================
--- trunk/libao2/ao_oss.c	Tue Feb 17 21:44:45 2009	(r28639)
+++ trunk/libao2/ao_oss.c	Tue Feb 17 22:08:22 2009	(r28640)
@@ -454,6 +454,8 @@ static void reset(void){
 #endif
 
   oss_format = format2oss(ao_data.format);
+  if(ao_data.format == AF_FORMAT_AC3)
+    ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
   ioctl (audio_fd, SNDCTL_DSP_SETFMT, &oss_format);
   if(ao_data.format != AF_FORMAT_AC3) {
     if (ao_data.channels > 2)



More information about the MPlayer-cvslog mailing list