1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-05 07:37:29 +02:00
openwrt-packages/mplayer/patches/020-alsa-buffer.patch
David Kühling 030251fdf6 mplayer: Make alsa work (use larger buffer), and use it instead of OSS This
reduces CPU load during playback, and also makes the audio mixer react much
more quickly (note: if mplayer automatic resampling kicks in now, we should
add -af-adv force=2 to make it use the fastest resampling filter)
2011-04-27 08:28:37 +02:00

16 lines
594 B
Diff

Index: MPlayer-r33304/libao2/ao_alsa.c
===================================================================
--- MPlayer-r33304.orig/libao2/ao_alsa.c 2011-04-27 08:12:35.000000000 +0200
+++ MPlayer-r33304/libao2/ao_alsa.c 2011-04-27 08:12:55.000000000 +0200
@@ -313,8 +313,8 @@
*/
static int init(int rate_hz, int channels, int format, int flags)
{
- unsigned int alsa_buffer_time = 500000; /* 0.5 s */
- unsigned int alsa_fragcount = 16;
+ unsigned int alsa_buffer_time = 1000000; /* 0.5 s */
+ unsigned int alsa_fragcount = 4;
int err;
int block;
strarg_t device;