]> git.tuebingen.mpg.de Git - paraslash.git/commit
alsa: New writer option: --buffer-time.
authorAndre Noll <maan@systemlinux.org>
Mon, 9 Sep 2013 03:53:32 +0000 (03:53 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 8 Mar 2014 13:45:20 +0000 (14:45 +0100)
commit480d69f921a23cfe62e05692cd646b8fce50d262
tree19f060f486db685201306217350cfb330ab20ec5
parent3ac2a1478a7ad965bb48bec7d21aa49affd95d29
alsa: New writer option: --buffer-time.

This removes the old way of setting of private_alsa_write_data->buffer_time

Currently we set the buffer time to the minimum of the maximum
buffer time and 500ms. This results in different values for different
hardware. In view of the introduction of the sync filter it seems to
be desirable to have more control over this value.

This patch adds the --buffer-time config option to the alsa
writer which allows to specify a suitable value, the default being
170ms. The unit of private_alsa_write_data->buffer_time is changed
from microseconds to milliseconds as this avoids to divide by 1000
in ->pre_select().
alsa_write.c
m4/gengetopt/alsa_write.m4