]> git.alsa-project.org Git - alsa-lib.git/commit
Fix buffer size handling of direct plugins
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Apr 2006 16:49:11 +0000 (18:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Apr 2006 16:49:11 +0000 (18:49 +0200)
commit1128efc7d4edf488735b7769211d99e5d4fa1ad3
treed0f2adf5bd81fa2cc732c5048cdef71f9777be56
parent33d69ef33be28a4d205a852462c25c67d2f51707
Fix buffer size handling of direct plugins

Introduce "max_periods" option to specify the max number of periods
per buffer to each plugin.

- When max_periods = -1, the fixed buffer size as the slave size is
  used (old behavior).
- When max_periods = 0 (or 1), the number of periods is variable
  between 2 and the slave buffer size.
- When max_periods greater than 2 is given, it specifies the max
  periods of that pcm explicitly.

When no option is given in the PCM defintion, the value
"defaults.pcm.dmix_max_periods" is referred as default.
The default value is 0, as defined in alsa.conf.
You can override this in ~/.asoundrc or /etc/asound.conf as you like.
src/conf/alsa.conf
src/conf/pcm/dmix.conf
src/pcm/pcm_direct.c
src/pcm/pcm_direct.h
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c