Hi Richard,
It looks great, and it works for me. (Thanks to your OpenAL help on #haskell.) I suggest making all the Source fields be behaviors rather than events. From the names of these fields, I'd guess they're time-varying quantities, so Behavior will be the most convenient/natural way of creating them. The mkUpdater function from FRP.Reactive.LegacyAdapters has smarts to invoke your OpenAL/ALUT setters only when things are changing, as is done with OpenGL in reactive-fieldtrip.
At some point, I'd love to use your library in reactive-fieldtrip.
Thanks for sharing. And please keep us updated on your progress.
- ConalOn Thu, Nov 27, 2008 at 4:35 PM, Richard Smith <richard@metafoo.co.uk> wrote:
Hello list,
I'm working on a reactive adapter for OpenAL, allowing sounds to be
generated and played as Behaviour Double. It's a little slow, but working.
You can get the source from http://metafoo.co.uk/darcs/resound
Comments, constructive criticism and especially patches welcomed :)
Thanks,
Richard (IRC:lilac)
_______________________________________________
Reactive mailing list
Reactive@haskell.org
http://www.haskell.org/mailman/listinfo/reactive
_______________________________________________
Reactive mailing list
Reactive@haskell.org
http://www.haskell.org/mailman/listinfo/reactive