Την Mon, 23 Feb 2009 17:55:08 +0200,ο(η) Richard Furse
<
rf015d9821@...> έγραψε:
>>
>> Maybe some kind of query mechanism would work better? eg. Set
>> up an query to watch for 'foldback events', which can be
>> retrieved when one is available. The events would be polled
>> by the app instead of a callback being called.
>
> Yep - I considered this, but came to the conclusion it was best to notify
> the app, in the style of most other inbound APIs. This keeps thread sync
> really simple. If the app really can't cope with the language binding (is
> there really much stuff not in C/C++?) we could always shove a standard
> callback implementation in ALUT to store the callbacks and list them
> back on
> request.
Just pitching in to say that yes, there's a lot of openal stuff out there
that's not C/C++.
In my experience (a library called opentk with C# bindings to opengl,
openal and opencl), callbacks are the single biggest issue. Oftentimes,
the only way to make them work is to write a C/C++ layer that abstracts
the callback.
So please avoid callbacks, if at all possible :)
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel