Csound Csound-dev Csound-tekno Search About

[Csnd] pulseaudio IO module

Date2008-03-27 23:16
Fromvictor
Subject[Csnd] pulseaudio IO module
Hi all,
 
I just wanted to let you know that I have added an experimental
pulseaudio IO module for Csound. It's a work in progress, but
I have tested playback (and I have no reason to think input does not
work). Might require some fine tuning and some extras (such as
server selection) and I have only built and tested on Linux.
 
If you have pulseaudio libraries and headers (linux) scons will
build the module for you. Then you can do something like
 
csound -odac:<your_sink_name_here> examples/trapped.csd -+rtaudio=pulse
 
If you don't give a sink name, then the default is used (but in my case
the default is the modem...:(  ). The awkward thing is that the sink name
can be quite long, eg. alsa_output.pci_8086_24c5_alsa_playback_0
(they should have learned from jack...)
 
I'll see if I can have a way of simplifying this. But in the meantime, it's
there and you can try it out.
 
I suppose the code will build on other platforms supported by pulseaudio,
but I have not tried it yet.
 
Code is in CVS now. Enjoy (if you can...)
 
Regards
 
Victor