[alsa-devel] Looking for ideas to solve ruby alsa duplex problem
alban at tryphon.eu
Sat Oct 30 12:19:33 CEST 2010
Hi alsa guys,
We're working on a ruby binding for alsa :
http://projects.tryphon.eu/ruby-alsa/. PCM Playback and Capture are
supported for a long time (and used in production for several months).
Ruby developers can find the gem on http://rubygems.org/gems/ruby-alsa.
But we're trying to investigate a problem with "duplex mode" :
http://projects.tryphon.eu/ruby-alsa/ticket/4. We can't find a way to
record and playback simple stereo streams in the same process without
dummy hackings :-/ We don't need an extreme latency, just a simple
process to add/receive streams on network (our LinkStream/LinkBox project).
I hopes it's only a misusage of the ALSA API or a mistake in
hardware/software configurations. But after several weeks on this
problem, we need fresh ideas :)
Even if you have no idea about ruby, the Playback  and Capture 
are very simple wrappers around the native ALSA API  (mapped with
ruby ffi ). The alsa device is opened and configured using a shared
open method in Stream . Very few code in fact.
I hope an expert eye will find a beginning of solution ;)
Alban Peignier - alban at tryphon.eu
Tryphon : Radio, Web and Free Software
More information about the Alsa-devel