[linux-audio-dev] Re: OpenGL + Audio = Bad Idea?
drobilla at connect.carleton.ca
Sun May 22 08:49:07 UTC 2005
On Sun, 2005-22-05 at 08:34 +0200, Richard Spindler wrote:
> I'm not rendering in the audio threat, I just push a redraw request to
> fltk, and a send an awake event to fltk which is impemented as a pipe
> I only block waiting for fltk such that I can submit the redraw
> request. It returns immediatly and FLTK goes on drawing it's stuff.
> As I said, realtime safeness is not an issue right now, but if you
> have hints to make it more "correct", they are welcome :)
> (Well, I could just use a pipe to wake up fltk to redraw, this should
> be trivial)
> Obtaining the best FPS isn't an issue either, because I'm rendering
> video to the OpenGL context, and I mainly want it to stay in sync with
> audio more or less.
Ah, sorry I misunderstood/assumed. Assuming FLTK deals with getting
multiple redraw requests while one is still not finished without
blocking, that's fine.
Then again, the fact that you block at all "waiting for fltk" (even if
it is just to submit a request) is probably less than ideal.. but I
won't pretend to know enough about FLTK or what you're doing to say.
P.S. Please don't top-post.
More information about the Linux-audio-dev