When g_timeout_add doesn't seem to be enough
- From: RafaÅ MuÅyÅo <galtgendo o2 pl>
- To: gtk-app-devel-list gnome org
- Subject: When g_timeout_add doesn't seem to be enough
- Date: Wed, 28 Nov 2007 22:45:13 +0100
I'm trying to modify an app that's using callback-based sound system to
one that does not use callbacks.
I need a way to execute a group of commands genarating sound in an
endless loop while allowing rest of the app to work.
Now I'm executing those comands in a function that I give to
g_timeout_add, but I'm getting short gaps of silence.
Even g_timeout_add_full with interval=0 and
priority=G_PRIORITY_DEFAULT_IDLE is not enough (with g_timeout_add
interval=0 resultls in a full stop). What would be a good way to do it ?
Threads ? If so, how ? Can anybody give me a simple example ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]