I’d like to be able to output audio from Haskell. I’m currently using GHC 6.10 on OS X (Snow Leopard). I’ve tried building the jack library (using JackOSX) and the PortAudio library, but neither of them seemed effective. Is there a relatively simple way to do live audio output from a Haskell program on a Mac?
Edit: Clarity
I’ve been using PortAudio successfully.
I took some excerpts from my toy program to make a very simple “echo” example, below:
(run with headphones. this is a feedback loop from the mic to the speakers and may become very loud after a few feedback rounds)
Works here in Leopard with GHC 6.10.4.
My own toy program actually only uses audio input, and it outputs zeros to audio output (without doing that PortAudio complains).