Mercurial > mplayer.hg
changeset 28605:65e49c604b25
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).
author | reimar |
---|---|
date | Tue, 17 Feb 2009 21:08:22 +0000 |
parents | 011bd477ee51 |
children | 172bddb096b8 |
files | libao2/ao_oss.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_oss.c Tue Feb 17 20:44:45 2009 +0000 +++ b/libao2/ao_oss.c Tue Feb 17 21:08:22 2009 +0000 @@ -454,6 +454,8 @@ #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)