Hi David,
Attached is the output from
faust -a sndfile.cpp tmix2.dsp > tmix2.cpp
for the Faust program (tmix2.dsp):
// two-channel audio mixer:
gain1 = hslider("Gain1",0.5,0,1,0.001);
gain2 = hslider("Gain2",0.5,0,1,0.001);
process = _, _ : *(gain1), *(gain2) :> _;
(See tmix2.cpp attached)
Cheers,
- Julius
On Fri, Feb 17, 2017 at 5:44 PM, David Griffith <dave(a)661.org> wrote:
For a couple years I've been trying, without success, to reliably mix two
audio streams on the fly in C. I'm using libao, libmodplug, libsamplerate,
libsndfile, and libvorbis. The program is Frotz (
https://github.com/DavidGriffith/frotz), a Z-machine emulator for playing
old Infocom games as well as newer ones. Could I please get some help with
this?
--
David Griffith
dave(a)661.org
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev(a)lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
--
Julius O. Smith III <jos(a)ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/ <http://ccrma.stanford.edu/>