Merged memory loop is not repeating #1471
-
Hi Phil, I am in a learning curve following many of your examples, changing bits and things ... and learning ... In your audiokit example "streams-memory_pcm-mixer-audiokit" you mix a "drums" and a "guitar" memory stream and the stream is in an endless loop. To obtain the effect, the only thing I did is change the number of channels from 1 to 2 in the kit configuration.
In Setup:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Interesting question: the copier checks for the available data and in the InputMerge I use the min of all streams to provide this result. I changed the available() method in MemoryStream to return a fixed DEFAULT_BUFFER_SIZE instead of the effective available bytes up to the end when it is in loop mode. With this change, your sketch should work correctly now! The correction has been committed to github |
Beta Was this translation helpful? Give feedback.
Interesting question: the copier checks for the available data and in the InputMerge I use the min of all streams to provide this result.
I changed the available() method in MemoryStream to return a fixed DEFAULT_BUFFER_SIZE instead of the effective available bytes up to the end when it is in loop mode. With this change, your sketch should work correctly now!
The correction has been committed to github