# HG changeset patch # User arpi # Date 1042104471 0 # Node ID d98f312051fd2d39fb740bfe143729212e079816 # Parent 7da2d67e8ef497f082d4f5c0ce513fe1f094f779 10l noticed by Joe Barnett diff -r 7da2d67e8ef4 -r d98f312051fd libao2/ao_oss.c --- a/libao2/ao_oss.c Wed Jan 08 22:08:59 2003 +0000 +++ b/libao2/ao_oss.c Thu Jan 09 09:27:51 2003 +0000 @@ -149,11 +149,10 @@ if(ao_data.format!=format) mp_msg(MSGT_AO,MSGL_WARN,"WARNING! Your soundcard does NOT support %s sample format! Broken audio or bad playback speed are possible! Try with '-aop list=format'\n",audio_out_format_name(format)); #endif - + ao_data.channels = channels; if(format != AFMT_AC3) { // We only use SNDCTL_DSP_CHANNELS for >2 channels, in case some drivers don't have it - ao_data.channels = channels; if (ao_data.channels > 2) { if ( ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &ao_data.channels) == -1 || ao_data.channels != channels ) {