Dynamic channel connecting
Posted: Fri May 18, 2018 9:45 am
Hi all,
Working on a tile of xCORE-200, I am making a chain of threads to process samples, dynamically creating/suppressing threads. But I couldn't find how to dynamically change the channels connected to a thread.
The initial chain of threads is :
What I want to do is :
Creating a new thread (Thread 2') and a new chan (Channel 3) is ok but I can't pass the new channel to thread 2 to connect thread 2' and 2. I tried using global chan array but the xC rules doesn't allow it (even for reading only the channel in the array).
If someone did it or know if there is a tricky way to do it, let me know.
Thanks for your hints,
Marc
Working on a tile of xCORE-200, I am making a chain of threads to process samples, dynamically creating/suppressing threads. But I couldn't find how to dynamically change the channels connected to a thread.
The initial chain of threads is :
What I want to do is :
Creating a new thread (Thread 2') and a new chan (Channel 3) is ok but I can't pass the new channel to thread 2 to connect thread 2' and 2. I tried using global chan array but the xC rules doesn't allow it (even for reading only the channel in the array).
If someone did it or know if there is a tricky way to do it, let me know.
Thanks for your hints,
Marc