Well,
I have a signal and I want to get some information from it.
I want to create demodulators and filters at runtime, and so they are no longer needed, remove them (and freeing any resources associated with them).
I'm having problems with an example that I am implementing.
Initially I have two blocks connected:
Audio source ----> Audio sink
At runtime I'm adding new branches:
Audio source ----> Audio sink
|---> Some block ----> Null sink
|---> Some block ----> Null sink
.
.
|---> Some block ----> Null sink
After adding 100 new branches, I remove all of them returning the initial topology. (Audio source ----> Audio sink)
These additions and removals occur cyclically..
The strange thing is that after a few cycles, the audio starts to get delayed (occurring some audio underflow).
My big question is: this audio delay is related to the creation and removal of blocks or not?
Any suggestion?