From: Pierre Ossman Subject: How to tweak dmix? Date: Thu, 10 Mar 2005 23:14:29 +0100 Message-ID: <4230C6C5.9040308@drzeus.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Alsa-devel List-Id: alsa-devel@alsa-project.org I've been looking for some guides on how you tweak the parameters in dmix to get what you want but I haven't found any. I can just find example after example without any explanation of the parameters. The reason I want to tweak it is because the sound isn't "just right". I can either get a lot of stuttering, or very short samples fail to be played. My current setting is: period_time 84000 buffer_time 340000 period_size 4096 buffer_size 32768 This gives me pleasant sound as long as the samples are long enough. Short things newer survive long enough to reach the speakers. If I remove *_size and set period_time to around half of buffer_time then I can get short samples to play. But longer samples start to stutter and the sound is awful. I've been playing around with the values but since I don't really know what I'm changing I haven't been able to find a solution that works well. So I could really use some help here. Rgds Pierre ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click