mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
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)
This commit is contained in:
15
mplayer/patches/020-alsa-buffer.patch
Normal file
15
mplayer/patches/020-alsa-buffer.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user