OpenAL - Alsa
A new implementation using Alsa
This is an implementation of OpenAL
library using ALSA as the
only back end.
OpenAL - Alsa is only a modification of the original library OpenAL-alsa-emu10k1 made
by C.J.Purnell. I've simply replaced all code relative to emu10k1
processor, with a more compatible one, so now it's should work with
every sound card
that supports multiple sub streams. If you have an emu10k1 you don't
need Openal-alsa, you should continue to use C.J.Purnell's one, anyway
if you want to test it you are welcome.
You can easly verify how many sub
streams your hardware can handle with a simple command, in my case:
$ cat /proc/asound/CS46xx/pcm0p/info
subname: subdevice #0
Added Surround support:openal-alsa-0.2.0.tar.gz.
Finally i've added surround support! I've tested it only on a surround40 system but it should go also with more speakers.
Version 0.1.5.1 and 0.1.5.2 are now merged, so now any user can use openal-alsa. A new configuration file has been
added, look at etc for it. Here's an example:
If you want to use more than four speakers remember to use a correct speakers configuration, as always look at etc for some examples.
Surround users must pay attention on available subdevices: Surround40 use 2 devices, front and rear, so
subdevices_avail are halved.
For CS46xx users: there is a problem on an alsa configuration file: /usr/share/alsa/cards/CS46xx.conf
section CS46xx.pcm.rear.0 uses an hook, you have to remove it, for example:
@args [ CARD ]
This is a special version intended for users who hasn't got a soundcard that support multiple
sub streams. Number of voices is fixed to 64 and now device is changed to default
You can use it with dmix alsa plug in, here it is an .asoundrc example:
There is a problem on closing pcm streams so actually it doesn't close
them at all, may be an alsa bug? I'll investigating.
Thanks to Matthew A. Nicholson for the idea.
Thanks to Antonio Soriano Hernandez for the note.
Memory optimization. No more waste of memory on mono waves openal-alsa-0.1.5.tar.gz.
I'm working on others improvements such as a new threading model and surround support, but
i'm a bit busy. Any feedback or better any benchmark should be very appreciated.
Low volume fixed openal-alsa-0.1.4.tar.gz.
My first relase openal-alsa-0.1.3.tar.gz.
Actually it supports only stereo playback and the alsa device is fixed
to HW:0 . There is also an issue with volume that is a bit low. I'm
Dino Puller (dino.puller at gmail.com)