Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-25-2008, 03:13 AM   #1
Registered: Aug 2008
Posts: 107

Rep: Reputation: 16
Post How to use PulseAudio for audio application in Linux

I am trying to write an audio application in Linux using PulseAudio. What library would I be able to use that would allow me to interact with the PulseAudio daemon and write an audio application for Linux in the C programming language?

This is what the audio application will need to be able to do:
* play audio file on selection
* display vu meter info
* get audio signal amplitude in variable
* display audio spectrum

Any support libs would also be useful. Are there man pages for them too?

Note that a google search for "libpulse-dev" came up empty. If there are some LQ pages with useful info then reply with the LQ page too.
Old 08-25-2008, 07:22 AM   #2
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
On Debian-based distros it should be libpulse-dev. On RPM-based it should be pulseaudio-libs.

Obviously you should start here.
Old 08-25-2008, 12:33 PM   #3
Registered: Aug 2008
Posts: 107

Original Poster
Rep: Reputation: 16
found libpulse-dev and pulseaudio-libs

jcookeman, thanks for the lib names. I had looked for libpulse-dev in the installation manager and did not find it because I had misread it when I looked in "available" packages and it was already installed! (too much tv?)

libpulse-dev seems to be the library that I was looking for. I also installed pulseaudio-libs, though this is a "virtual" package that is included for backwards compatibility.

libpulse-dev includes the following:


I plan to take a look at the documentation to see if that will be what will allow me to write the audio application in Linux. There were a few other pulseaudio libs that I also installed, and one is a plugin for audacious, an audio application for Linux that does some of the things that I was trying to do, so I can take a look at how they code parts of it (but they would be using different calls).

Any additional answers to the original post are of course welcome.


daemon, programming, pulseaudio

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring pulseaudio to play sound on both a linux and windows box bezz86 Linux - Software 1 08-05-2008 03:07 AM
Audio Authoring Application of the Year jeremy 2007 Members Choice Awards 10 03-15-2008 11:48 AM
java getting audio stream from an application meercat Programming 0 01-09-2005 10:32 AM
audio CD default application hildog Linux - Newbie 1 10-04-2003 06:50 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration