speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trouble with Espeak and ALSA


From: Mike Gorse
Subject: trouble with Espeak and ALSA
Date: Sun, 9 Mar 2008 18:27:35 -0400 (EDT)

Hi all,

Fyi, I have just looked into this and believe I have a simple patch to 
alsa-lib that fixes it.  I've just sent it to alsa-devel, so hopefully 
Takashi or whoever will like it and commit it.

--- src/pcm/pcm_dmix.c.orig     2008-01-18 20:00:10.000000000 -0500
+++ src/pcm/pcm_dmix.c  2008-03-09 18:01:13.000000000 -0400
@@ -311,9 +311,9 @@
        if (size >= pcm->boundary / 2)
                size = pcm->boundary - size;

-       /* the slave_app_ptr can be far behing the slave_hw_ptr */
+       /* the slave_app_ptr can be far behind the slave_hw_ptr */
        /* reduce mixing and errors here - just skip not catched writes */
-       if (dmix->slave_hw_ptr < dmix->slave_appl_ptr)
+       if (dmix->slave_hw_ptr <= dmix->slave_appl_ptr)
                slave_size = dmix->slave_appl_ptr - dmix->slave_hw_ptr;
        else
                slave_size = dmix->slave_appl_ptr + (dmix->slave_boundary - 
dmix->slave_hw_ptr);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]