LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-25-2008, 02:13 AM   #1
bapigoo9
Member
 
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, 06:22 AM   #2
jcookeman
Member
 
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, 11:33 AM   #3
bapigoo9
Member
 
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:
/usr/lib: libpulse-browse.so, libpulse-mainloop-glib.so, libpulse-simple.so, libpulse.so

/usr/share/doc/packages/libpulse-dev/html

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.
 
  


Reply

Tags
daemon, programming, pulseaudio



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 02:07 AM
Audio Authoring Application of the Year jeremy 2007 LinuxQuestions.org Members Choice Awards 10 03-15-2008 10:48 AM
java getting audio stream from an application meercat Programming 0 01-09-2005 09:32 AM
audio CD default application hildog Linux - Newbie 1 10-04-2003 05:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:52 AM.

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