mirror of
https://github.com/mpv-player/mpv
synced 2025-04-22 15:17:43 +00:00
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:
parent
def649b0e4
commit
3cc173f7e4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user