Need urgent help/pointers with ALSA programming
Posted: Fri Sep 02, 2011 6:01 pm
First of all, sorry for asking this question here. I lurked around for a bit and saw that
the community is pretty knowledgeable, so here goes.
Oh crap, how do I even begin ?
I got employed not too long ago and my employer has currently (T)asked me to port an Android game to
a device running Linux (under NDA).
The device has a horrendous sound API and I had to fix this, and I did, after finding out the SDK has libasound (ALSA),
by dynamically linking Audiere with the project after fixing the ALSA device and it worked great.
My employer's lawyers problem is that Audiere is LGPL and they want to hear none of it.
And they already refused to let the devs use OpenAL for Android, but android has the AudioTrack class.
So I have to, pretty much write a minimal sound library using only ALSA (and whatever other non LGPL
or GPL libraries I can find, if any) and can do the following:
1) Mix up to 4 sounds
2) Supports panning
3) Supports streaming
4) Supports ogg files
I've read the tutorial that explains 16bit PCM 44.1 KHz playback with ALSA alone, and it's already a bit too much to take in.
Do you guys know of any BSD/MIT libraries that can do what I need ?
Or some ALSA documentation that's geared to someone who's NOT necessarily a sound engineer ?
the community is pretty knowledgeable, so here goes.
Oh crap, how do I even begin ?
I got employed not too long ago and my employer has currently (T)asked me to port an Android game to
a device running Linux (under NDA).
The device has a horrendous sound API and I had to fix this, and I did, after finding out the SDK has libasound (ALSA),
by dynamically linking Audiere with the project after fixing the ALSA device and it worked great.
My employer's lawyers problem is that Audiere is LGPL and they want to hear none of it.
And they already refused to let the devs use OpenAL for Android, but android has the AudioTrack class.
So I have to, pretty much write a minimal sound library using only ALSA (and whatever other non LGPL
or GPL libraries I can find, if any) and can do the following:
1) Mix up to 4 sounds
2) Supports panning
3) Supports streaming
4) Supports ogg files
I've read the tutorial that explains 16bit PCM 44.1 KHz playback with ALSA alone, and it's already a bit too much to take in.
Do you guys know of any BSD/MIT libraries that can do what I need ?
Or some ALSA documentation that's geared to someone who's NOT necessarily a sound engineer ?