From: "Giovanni Maruzzelli" Subject: Too much latency with default:0, problem with period_time on dmix-dsnoop Date: Mon, 20 Nov 2006 18:00:11 +0100 Message-ID: <7c5010d60611200900n40c805d4p8abab809482152d6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi Takashi, hi all, I have a problem of too much latency using from C the "default:n" devices under ALSA (if I understood correctly, this is because the "default:n" devices uses dmix and dsnoop, and I need dmix and dsnoop, but dmix and dsnoop have a fixed period_time=125000). I was able to solve this problem with an asound.conf, specifying the period_time in both the dmix and dsnoop that constitute the asym that I made the default. There is a way to do the same from the command line, in a way similar to: aplay -D"plug:'dmix:RATE=44100'" Also (and maybe better), there is a way to "build" a device similar to the one builded by this asound.conf from the C api? Any help very much appreciated ;) Giovanni My sample asound.conf: pcm.dmixed { ipc_key 1025 type dmix slave { pcm "hw:0" period_time 20000 } } pcm.dsnooped { ipc_key 1027 type dsnoop slave { pcm "hw:0" period_time 20000 } } pcm.asymed { type asym playback.pcm "dmixed" capture.pcm "dsnooped" } pcm.!default { type plug slave.pcm "asymed" } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV