hi;

On 9 June 2012 05:58, Tyson Neuroth <tyneur...@gmail.com> wrote:
> Is it possible to change the interval of clutter_threads_add_timeout, during
> runtime?  I'm using it in an audio application to check if a buffer is done
> playing so that I can un-queue it, fill with new data and re-queue.
>
> I am going to implement functionality to let the user choose the buffer
> size.  My clutter_threads_add_timeout function needs to be launched at an
> interval of less than half the size of the buffer.
>
> So I would like to modify the interval.

no, you cannot modify the interval; what you can do is remove the
scheduled source with g_source_remove() and schedule a new interval.

given your use case, I'd just like to mention that
clutter_threads_add_timeout() is just a wrapper around g_timeout_add()
that ensures that the callback is executed under the Clutter lock;
thus, it has all the caveats of g_timeout_add():

http://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#g-timeout-add

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
_______________________________________________
clutter-app-devel-list mailing list
clutter-app-devel-list@clutter-project.org
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to