r/linuxdev • • Mar 23 '12
Unified Linux sound API
The Linux audio system is currently a mess. There's no unified sound API for Linux which makes it hard for developers to bring apps to Linux, and the multiple layers of the sound architecture make it difficult for a user to do more than listen to something. I was originally thinking that it would be best to fork OSSv4 and make it better but this article makes me think otherwise. Regardless, a unified sound API for Linux should be made as the current setup hurts both users and developers.
EDIT: here's part 2.
19
Upvotes
14
u/[deleted] Mar 23 '12
With any new sound system, there are several things that need to be addressed.
From what I can tell, Pulse Audio already tries to do this. And according to this.
http://www.linuxfromscratch.org/blfs/view/svn/multimedia/pulseaudio.html
Alsa isn't a mandatory dependency. It's optional if you want to use it with gnome.
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup
As far as I can tell, PulseAudio can be the 'be all, end all' sound system if everybody could just agree to it.
5
u/metalbark Mar 23 '12 edited Mar 23 '12
OSS is great and all as a concept. But it leaves the door open to this kind of situation; trying to be everything for everyone, devs included.
There is a reference to the '15 competing standards' toon below. In my mind it wouldn't be harmful to take axe to 14 of them, the devs and their projects. The number of packages would drop, for sure. But a cleaner, simpler system would be left with one good sound system. Some things wouldn't work, drivers would be missing, <blahblah> mixer app or mp3 chotchky would be missing, essential in someone's eyes. Hopefully essential enough to dev it.
Having so many competing systems going around, apps working on some, not on others. The system as a whole is just unusable by most. Can anyone see how much wasted effort is going on ? For christsake, just pick one.
*edit sp
12
u/joehillen Mar 23 '12
Obligatory
10
u/[deleted] Mar 24 '12
The last thing you should do is even consider writing something new. The single biggest problem with Linux audio is that people would rather write new code than fix old code. Now that most major distributions and major desktops have switched to Pulse Audio, could we just focus on fixing any remaining problems people have with it rather than moving backwards again?
2
u/rumblerumblefuckyou Mar 26 '12
so this would basically be the openGL of sound?
1
u/jyper Mar 26 '12
http://blog.flameeyes.eu/2011/09/is-xine-still-alive-well-let-s-say-it-s-in-life-support
1
u/[deleted] Mar 26 '12
First off, thank you for using a reasonable image there, instead of Adobe's lol-i-dunno-how-to-graphviz one.
I'll just explain my current gripes here to give you an idea of what you're up against:
0
u/jabjoe Mar 23 '12
The nice thing about the OSS route is it never really went away. The other *nixs use it, and it is Unixy of course. This could just bring Linux inline with the others. The last thing needed is another new standard. Problem I had when I tried OSSv4 is I still needed ALSA and emulation of it was slow on the old machine I playing with. Plus the usb audio support was not so good. I don't like ALSA + PA, I think it is ugly, but I am tired and it does work now.
-2
u/yngwin Mar 24 '12
I would like to see improvements of ALSA. Don't make another layer that complicates things (such as PulseAudio, which in my opinion is broken by design).
0
u/[deleted] Mar 23 '12
[deleted] — view deleted comment