diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-30 22:15:01 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-30 22:15:01 +0000 |
commit | 3cc173f7e48b42bceed2befe3775b18590d571a3 (patch) | |
tree | 599780c71800f025825635882cde17dd939832b8 | |
parent | def649b0e4ded4c9a32fa424a0440ebd3e8fd9be (diff) | |
download | mpv-3cc173f7e48b42bceed2befe3775b18590d571a3.tar.bz2 mpv-3cc173f7e48b42bceed2befe3775b18590d571a3.tar.xz |
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
-rw-r--r-- | libao2/ao_null.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libao2/ao_null.c b/libao2/ao_null.c index 7189d98fdf..ae79a873e7 100644 --- a/libao2/ao_null.c +++ b/libao2/ao_null.c @@ -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; |