-
Notifications
You must be signed in to change notification settings - Fork 26
Play 2 files stimulatingly #4
Comments
I think this is simply how sox works: if you want to play two files at once, you need a software mixer. To do that with sox, you need to chain two streams together with a mixer, like the |
I can't imaging how I could do that, since the second file is playing in the middle of first file (trigger from keyboard event). I would really appreciate if you could hint more by a tiny example. |
Unfortunately as far as I understand how sox works, this is not possible :( The effect chain has to be pre-built, it isn't possible to change it later. But maybe I am wrong. I have not looked too deeply into that use case myself. |
Yeah, from what I see in the sox manual (http://sox.sourceforge.net/sox.html): "Note that applying multiple effects in real-time (i.e. when playing audio) is likely to require a high performance computer" But I don't know how they would do the real-time. |
@krig Is it possible to get the same functionality as this command with libsox? |
Hi @jonpastore , most likely this would need a new API, but at least in theory anything that is possible using the sox command line should be possible to do with the library as well. |
Hi,
I tried played the second file while the first file was playing but failed, the second file can only be play when being triggered after the first file finished playing. Is there any solution for this?
Thanks so much!
The text was updated successfully, but these errors were encountered: