Make outburst and buffersize depend on channel count.

This should reduce the number of case where to much audio
is buffered ahead thus breaking interleaving.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25217 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-11-30 22:15:01 +00:00
parent def649b0e4
commit 3cc173f7e4
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ static int control(int cmd,void *arg){
// return: 1=success 0=fail
static int init(int rate,int channels,int format,int flags){
ao_data.buffersize= 65536;
ao_data.outburst=1024;
ao_data.buffersize= 16384*channels;
ao_data.outburst=512*channels;
ao_data.channels=channels;
ao_data.samplerate=rate;
ao_data.format=format;