Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Sound is kind of fractured in the Linux world. There is ALSA, Open Sound, PulseAudio, OpenAL ...

Is there one "favoured" or "standard" or "recommended" lib to use in sound-emitting software in Ubuntu? (I'm particularly interested in videogames)

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The fractured Linux audio landscape is basically a myth nowadays. All sound technologies on Ubuntu that have not been deprecated or dead for six years are complementary. To paraphrase Lennart Poettering with slight updates and an Ubuntu app-developer perspective:

I want to write a media-player-like application!

Use GStreamer!

I want to add event sounds to my application!

Use libcanberra, install your sound files according to the XDG Sound Theming/Naming Specifications!

I want to add sound to my game!

Use the audio API of SDL for full-screen games, libcanberra for simple games with standard UIs such as Gtk+.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.