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.

I'm not totally clear on what pulseaudio does or how i can use it. For example, I have .wav and .ogg sound files that i need to play programatically (using c/c++). How can i use pluseaudio to do this? Or should i use something else?

share|improve this question

1 Answer 1

No.

Pulseaudio is a low-level "driver", or better, a "layer" that exists between applications and ALSA(Advanced Linux Sound Architecture) used to direct and mix sounds. For example, a game needs to make a noise. It sends this noise to pulseaudio(or another layer which it uses if it is made differently), and pulseaudio mixes and sends to ALSA, which interfaces with your sound card. While you could write your own application, you are better off using banshee Install banshee or vlc Install vlc. While writing software to interface with pulseaudio is beyond the scope of my knowledge, you can try using this extra reference.

share|improve this answer
    
By NO, do you mean that i should not use something else. your link is helpful. ideally i just want to invoke a few APIs from libpulse and it will play the sound files. i dont necessarily want to compile a whole lib myself. right? –  glutz Aug 5 '12 at 20:40
    
@glutz By "no", I mean that the sound should not be in this format. –  hexafraction Aug 5 '12 at 23:37

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.