[reactive] reactive adapter for OpenAL

Eyal Lotem eyal.lotem at gmail.com
Fri Nov 28 08:21:58 EST 2008


Hey, it does not seem to work here...

$ ./Main
<There's a 3-second period of quiet here>
AL lib: ALc.c:1253: exit() 1 device(s) and 1 context(s) NOT deleted
AL lib: alSource.c:2291: alcDestroyContext(): 1 Source(s) NOT deleted
AL lib: alBuffer.c:1097: exit() 1 Buffer(s) NOT deleted

The OpenAL library compiled Ok, (proper values for the constants, after I
added the #include of AL/al.h.

Any idea what else can cause the play to go wary?

Eyal

2008/11/28 Conal Elliott <conal at conal.net>

> 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.
>
>   - Conal
>
>
> On Thu, Nov 27, 2008 at 4:35 PM, Richard Smith <richard at 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 at haskell.org
>> http://www.haskell.org/mailman/listinfo/reactive
>>
>
>
> _______________________________________________
> Reactive mailing list
> Reactive at haskell.org
> http://www.haskell.org/mailman/listinfo/reactive
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/reactive/attachments/20081128/75c85dd5/attachment.htm


More information about the Reactive mailing list