also, it might not be the alsa change that made this problem more
visible; it could also be changes in how the threading library
works.
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@xxxxxxxxxxx> writes:
Lukas> Hi Raman,
Lukas>
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>
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>
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>
Lukas> Best regards, Lukas
Lukas>
Lukas> [1] http://developer.opensound.com/
Lukas>
Lukas> -----------------------------------------------------------------------------
Lukas> To unsubscribe from the emacspeak list or change your
Lukas> address on the emacspeak list send mail to
Lukas> "emacspeak-request@xxxxxxxxxxx" with a subject of
Lukas> "unsubscribe" or "help"
--
Best Regards,
--raman
Email: raman@xxxxxxxxxxx
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@xxxxxxxxxxx
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@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
If you have questions about this archive or had problems using it, please send mail to:
priestdo@xxxxxxxxxxx No Soliciting!Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998