Update of /cvsroot/mplayer/main/libao2 In directory mail:/var/tmp.root/cvs-serv32076/libao2 Modified Files: ao_alsa9.c Log Message: A hack for odd alsa driver behavior (returning too small chunks). Thought up by A'rpi. Index: ao_alsa9.c =================================================================== RCS file: /cvsroot/mplayer/main/libao2/ao_alsa9.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- ao_alsa9.c 4 Dec 2002 22:01:59 -0000 1.29 +++ ao_alsa9.c 7 Jan 2003 20:53:46 -0000 1.30 @@ -1082,7 +1082,11 @@ if (ret < 0) { printf("negative value!!\n"); ret = 0; - } + } else + if (ret < 8192) + // this is a hack for audio only playing (the rountine returns about 4-20 bytes free + // and it makes the performance horrible to process large number of small chunks) + ret = 0; return(ret); }