What is the best audio playback api for C/C++ for Linux, preferrably free/open source? I need it for embedded Linux, so I'm looking for something as lightweight as possible with not to many dependencies? Thanks a lot!
however, SDL audio/mix API is really inefficient, and do not make use of mixing capability of audio backend.
elmarco
2009-07-08 12:01:22
+2
A:
PulseAudio has been adopted by the major distributions and it looks like it is the upcoming Linux Audio standard as it is more flexible than ALSA. Here's an article about why you should care about PulseAudio (and how to start doing it).
lothar
2009-04-21 15:45:17
And pulse doesn't have to be big, IIRC. Its configure script (I think) allows large parts to be compiled out.
MighMoS
2009-04-21 17:20:19
+1
A:
If you are doing embeded stuff, I would use ALSA directly (although it is quite complex). I definitely wouldn't use something like PulseAudio, because it is quite heavy and adds just another layer (a whole separate server). SDL might be okay, but it is mainly meant for games.
Zifre
2009-04-21 15:53:28
Not sure how this got a downvote. Embedded Linux can be quite small. Throwin stuff like PulseAudio on systems that don't need it will just increase the amount of RAM needed and thus the BOM costs.
MSalters
2009-04-22 11:07:26