Re: [LAD] Python assistance - threads (my favorite)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <fons@...>
Cc: <linux-audio-dev@...>
Date: Friday, October 15, 2010 - 3:33 pm

On Thu, October 14, 2010 4:10 pm, fons@kokkinizita.net wrote:

I tried all three suggestions and none of them do the trick.

What happens instead is that the threaded call gets played back the next
time the non threaded call to subprocess.Popen() is called. Although not
every time. But most likely if I wait for a bit longer than the timeout.

This script is very simple it doesn't have a ringbuffer or any way of
tracking itself.

Maybe it's just not possible to create a threaded timer with such a simple
script?

I changed approach and used the priority flag in spd-say. That seems to help.

Cheers.

--
Patrick Shirkey
Boost Hardware Ltd.

"ZPE is not about creating something from nothing: It is about using the
zero point of a wave as a means to transform other forms of potential
energy like magnetic flux, heat, or particle spin into usable energy in
such a way that entropy appears to be reversed."

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Python assistance - threads (my favorite), Patrick Shirkey, (Thu Oct 14, 10:05 pm)
Re: [LAD] Python assistance - threads (my favorite), Dominic Sacré, (Fri Oct 15, 7:02 am)
Re: [LAD] Python assistance - threads (my favorite), Patrick Shirkey, (Fri Oct 15, 3:33 pm)
Re: [LAD] Python assistance - threads (my favorite), Niels Mayer, (Fri Oct 15, 4:44 pm)