Multiple threads writing to one card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have two sound sources running in different threads in one application
that I want to mix together to a single output device. One sound source
is a library (modified TiMidity playing a MIDI file) that has limited
customisation. The other source (from the microphone) I can do what I
want with. I tried both threads opening plug:dmix but as expected it
didn't work, with one thread unable to write.

Is it possible to mix audio streams from two threads using ALSA? Or am I
better off re-designing it as two separate processes?

Thanks

Jan
-- 
Dr Jan Newmarch
Head of Higher Education (ICT)

P 61 3 9286 9971
M +61 4 0117 0509
F 61 3 9286 9100
W www.boxhill.edu.au
W jan.newmarch.name
E j.newmarch@xxxxxxxxxxxxxx
E jan@xxxxxxxxxxxxx




------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux