Hi everybody,
I have been working on an experimental OpenAL backend since the last week, implemented on top of Web Audio. Right now the basics are on the incoming branch, and you can find the source code in src/library_openal.js in case you're curious.
The basics that you need to play back a buffer should work fine. Please see this test case for a small demo: <
https://github.com/kripken/emscripten/blob/master/tests/openal_playback.cpp>.
Things that should work reliably:
* Basics such as obtaining a device and context
* Setting up buffers (use alBufferData; alSourceQueueBuffers has known issues, and I'm not sure if there is an efficient way to implement it on top of Web Audio)
* Playing, pausing, and stopping sources
* 3D positional audio (alSourcefv, alListenerfv)
* Looping support (AL_LOOPING)
The Web Audio implementation has been tested on the latest version of Chrome and also on Firefox Nightly where we have an initial Web Audio implementation.
Please test this new back-end and let me know if you hit any problems.