x11 and sound

dhagler

Registered
I am trying to port a linux program to osx that uses x11 and esd to present visual and auditory stimuli (for a brain imaging experiment). Is there esd for mac or something equivalent? I searched for one without success. I tried using the quicktime library but couldn't compile the sample I found on the osx developer website (soundsnippets.c). With the coreaudio library I was able to compile the sample (PlayAudioFile), but when I added the audio includes to my existing x11 program, I ran into an apparent conflict between the carbon framework and x11 (both have a definition of Cursor). I am not using anything from carbon, but it gets included anyway by AudioUnit and AudioToolbox.

Does anyone have suggestions for a very simple audio library that is compatible with X11 and open GL?
 
Well, you might want to take a look at the Allegro library. Its a game programming library, but it has sound routines that are very simple to use, and is compatible with OpenGL and X11.

I know you might get laughed at by your collegues for using a game library to do 'serious' work, but hey, if it gets the job done ...:)
 
Thanks for the reply, but I found out about Fink, which contains many many libraries ported from unix, including esd and audiofile. If anyone has to port existing code from linux, this is a very valuable package.
 
Back
Top