]> git.alsa-project.org Git - alsa-lib.git/commit
dmix - Allow more flexible buffer sizes
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:27:35 +0000 (10:27 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Mar 2006 10:27:35 +0000 (10:27 +0000)
commit7e6c920836cf193697b41e4e1bff1c5b8a330535
tree760eaf4153f7b0372d6a6f9b7538420c5cb6d010
parent8ef339762a0b76e0b2ce2b7bab534fe4c51a3e41
dmix - Allow more flexible buffer sizes

With the patch, dmix allows apps to use more flexible buffer sizes.
The max buffer size is unlimited, and the minimal buffer size is
(period size * 2).  The buffer size is aligned to period size.

The period size is still bound to the period size of slave PCM.

To back to the old behavior (the fixed buffer size), you can set

   defaults.pcm.dmix_variable_buffer false

in your configuration.
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