Skip to contentSkip to conversation

How to tweak dmix?

DISCUSSION Pierre Ossman 1 participant 1 message Mar 10, 2005

lore
Share & tools
lore
#0 lore raw

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