From: Takashi Iwai Subject: Re: Changes over dmix: 1.0.11rc4 and future Date: Mon, 03 Apr 2006 11:59:54 +0200 Message-ID: References: <1143919154.30769.16.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1143919154.30769.16.camel@mindpipe> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Lee Revell Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sat, 01 Apr 2006 14:19:13 -0500, Lee Revell wrote: > > On Mon, 2006-03-27 at 18:35 +0200, Takashi Iwai wrote: > > Hi, > > > > it looks like the 1.0.11rc4 announcement isn't sent out, so here I'd > > like to explain what has been changed over dmix recently. > > > > As of 1.0.11rc4, dmix accepts more flexible buffer sizes than the > > earlier versions did. The buffer size is basically arbitrary. The > > only restriction is that it's aligned to the period size, and the > > minimal periods are two. > > > > With this change, some applications have positive influences, and some > > have negative. The regression, for example with speaker-test, happens > > because there was no upper limit of buffer size. It's already fixed > > in the CVS version (by setting max periods = 1024). > > > > If you have a problem with dmix what didn't happen ago, try to define > > > > defaults.pcm.dmix_variable_buffer false > > > > in ~/.asoundrc. > > > > Does not work (alsa-lib and utils from today's CVS): > > $ aplay -Dplug:dmix51 /usr/share/sounds/error.wav > ALSA lib pcm.c:6650:(snd_pcm_slave_conf) Unknown field > variable_buffer_size > aplay: main:547: audio open error: Invalid argument > > .asoundrc: > > defaults.pcm.dmix_variable_buffer false > pcm.dmix51 { > type upmix > slave.pcm { > type dmix > ipc_key { > @func refer > name defaults.pcm.ipc_key > } > ipc_gid { > @func refer > name defaults.pcm.ipc_gid > } > slave { > pcm "hw:0,0" > period_size 512 > periods 10 > channels 6 > variable_buffer_size true > } > } > } My bad, a syntax error in the dmix51 definition I posted. pcm.dmix51 { type upmix slave.pcm { type dmix ipc_key { @func refer name defaults.pcm.ipc_key } ipc_gid { @func refer name defaults.pcm.ipc_gid } slave { pcm "hw:0,0" period_size 512 periods 10 channels 6 } variable_buffer_size true } } If you still get an error regarding variable_buffer_size, just remove that line. And note that this won't work with emu10k1. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642