PDA

View Full Version : Audio Library?



jacensolo
August 30th, 2009, 03:32 AM
I want to dabble into audio programming, but I can't find a good library. I don't mean I need to play an mp3 player, but play specific frequencies - like a synth. Can I do this with GStreamer?

abhilashm86
August 30th, 2009, 06:23 AM
I want to dabble into audio programming, but I can't find a good library. I don't mean I need to play an mp3 player, but play specific frequencies - like a synth. Can I do this with GStreamer?

yes you can use OpenAl libraries to achieve this, it provides you specific position, velocity, other attributes in the scene, i tried this in c++, you can refer this for more information (http://connect.creativelabs.com/openal/default.aspx) and packages in ubuntu (https://launchpad.net/ubuntu/+source/openal),
open a terminal, install OpenAl,

sudo apt-get install libalut0 libalut-dev libghc6-alut-dev libghc6-alut-doc libghc6-alut-prof libhugs-alut-bundled
check programming tips (http://abhilash.co.nr/)on my website for adding sound

all the best:)

soltanis
August 30th, 2009, 06:54 AM
With ALSA, you can also look into writing sound output to the /dev/dsp (digital signal processor) device; or, with the recent trends in Linux sound, use pulseaudio (a sound server).

For basic sound synthesis, either system is pretty straightforward and easy.

jacensolo
September 1st, 2009, 03:51 AM
I'm confused on how sound works in Linux. What does the sound server do and how do all of the libraries know how to talk to every sound server? How do libraries handle it on windows?