[MPlayer-dev-eng] Increase alsa buffer size request
Clemens Ladisch
clemens at ladisch.de
Mon Jul 3 15:51:27 CEST 2006
Vladimir Voroshilov wrote:
> I'm working on MPlayer radio support (threadless version).
> I am using rawaudio demuxer and staff from tv's audio_in.c.
> demuxer makes packets with AvgBytesPerSecond length.
> In ai_alsa.c and ai_alsa1x.c ALSA's buffer_time is initialized
> as 1000000 microseconds.
> Thus, when my module is working i get a lot of xrun events.
> Is it possible to increase buffer size to 2 seconds?
In theory, yes, but the driver is free to adjust this value up or down
according to its capabilities. There is hardware that doesn't even
support a one-second buffer, so your algorithm should be able to handle
that.
Regards,
Clemens
--
http://www.fastmail.fm - A no graphics, no pop-ups email service
More information about the MPlayer-dev-eng
mailing list