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

Re: Sometimes bad responsiveness with outloud and alsa 1.0.16

also, it might not be the alsa change that made this problem more
visible; it could also be changes in how  the threading library

Outloud is multithreaded -- run ps to see that it's running the
synthesis on a separate thread. 
The TCL  server loop is calling select, 
and  also  calls eciSpeaking which is sort of equivalent to
polling -- these two idioms are not necessarily a good mix. But
there is no other way that I could find at the time to get this
coded efficiently.

>>>>> "Lukas" == Lukas Loehrer <listaddr1@gmx.net> writes:
    Lukas> Hi Raman,
    Lukas> if I guess it correctly, the current value of 0.02
    Lukas> seconds is chosen as slightly less than 0.023 seconds
    Lukas> which is 256/11025, which would be the period time
    Lukas> with a period size of 256 samples. The idea would then
    Lukas> be that after waiting for this amount of time, there
    Lukas> will be space in the buffer for another chunk of
    Lukas> samples.
    Lukas> Tweaking parameters in the .asoundrc file or the above
    Lukas> value might work indeed, I am still somewhat puzzled
    Lukas> how the alsa upgrade could make this problem so much
    Lukas> worse.
    Lukas> On the topic of sound subsystems, I am considering to
    Lukas> give the recently GPL-ed OSS 4.0 [1] a try. I still
    Lukas> find alsa pretty difficult to code for especially
    Lukas> because the docs are so sparse. Also, I very much
    Lukas> dislike the often required fiddling with the .asoundrc
    Lukas> settings to get decent behavior. I do not know if OSS
    Lukas> 4 is better in this respect, but it might be worth a
    Lukas> try on machines where alsa cannot be persuaded to
    Lukas> deliver usable results. The OSS API is certanly much
    Lukas> simpler than alsa's and software mixing is supported
    Lukas> as well.
    Lukas> Best regards, Lukas
    Lukas> [1] http://developer.opensound.com/
    Lukas> -----------------------------------------------------------------------------
    Lukas> To unsubscribe from the emacspeak list or change your
    Lukas> address on the emacspeak list send mail to
    Lukas> "emacspeak-request@cs.vassar.edu" with a subject of
    Lukas> "unsubscribe" or "help"

Best Regards,

Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"

If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog