Mercurial > mplayer.hg
changeset 13651:997adf3656e2
Fix incompatibility with audio devices with more then 2 channels
author | nplourde |
---|---|
date | Sat, 16 Oct 2004 00:56:40 +0000 |
parents | bb916781eec6 |
children | 3427a9f4b6e3 |
files | libao2/ao_macosx.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_macosx.c Fri Oct 15 16:36:51 2004 +0000 +++ b/libao2/ao_macosx.c Sat Oct 16 00:56:40 2004 +0000 @@ -244,7 +244,7 @@ ao_msg(MSGT_AO,MSGL_V, "%5d ao->buffer_len\n", (int)ao->buffer_len); ao_data.samplerate = ao->outputStreamBasicDescription.mSampleRate; - ao_data.channels = ao->outputStreamBasicDescription.mChannelsPerFrame; + ao_data.channels = channels; ao_data.outburst = ao_data.buffersize = ao->buffer_len; ao_data.bps = ao_data.samplerate * ao->outputStreamBasicDescription.mBytesPerFrame;