[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: When g_timeout_add doesn't seem to be enough
From: Rafał Mużyło <galtgendo () o2 ! pl>
Date: 2007-11-28 21:45:13
Message-ID: 20071128214513.GA5890 () blackspire
[Download RAW message or body]
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 ?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic