[LAD] need help mixing on the fly

Julius Smith jos at ccrma.stanford.edu
Sat Feb 18 20:01:48 UTC 2017


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 at 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 at 661.org
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>



-- 

Julius O. Smith III <jos at ccrma.stanford.edu>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/ <http://ccrma.stanford.edu/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20170218/f93b141e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmix2.cpp
Type: text/x-c++src
Size: 9510 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20170218/f93b141e/attachment.cpp>


More information about the Linux-audio-dev mailing list