[uae] Re: Sound jitter problems

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Sun, 7 May 2006 02:32:50 -0400

Hi Lorenzo

On Friday 05 May 2006 19:20, Lorenzo Di Gaetano wrote:
> Ok. Is there a way to modify this buffer?

Yes.

If you edit /usr/share/alsa/pcm/dmix.conf and change the number of periods it 
uses. The default here is 16. Try 4 instead.

Here's an excerpt from the default dmix.conf I have here:

                periods {
                        @func refer
                        name {
                                @func concat
                                strings [
                                        "cards."
                                        {
                                                @func card_driver
                                                card $CARD
                                        }
                                        ".pcm.dmix.periods"
                                ]
                        }
                        default 16
                }

Changed the 'default 16' to 'default 4'.  This will reduce the number of 
buffer used and so latency involved with using the dmix plug-in - but it'll 
likely increase the CPU load.

However, if the ALSA OSS emulation causes the same stuttering for you, then 
the problem isn't dmix, IMHO. The OSS emulation doesn't use this 
configuration mechanism (it doesn't use dmix or any other libasound 
plug-ins).

Cheers,
Rich

Other related posts: