Plug-in debugging: Getting automuted when changing rapidly playback Rate in Reaper
My test plug-in is getting automuted, if I continue to adjust the Rate parameter in Reaper? Any idea what could be causing it.
My plug-in only reads audio into a buffer of 1024 samples and outputs the same amount. I.e. it's only a test of using a buffer to read in and output from. The buffer code shouldn't have bugs, because the plug-in runs infinitely, if I just let it run. It's changing Rate parameter in Reaper that causes automuting, after wiggling it around for some time.
Changing the Rate parameter also affects latency. I can see the latency sample size increasing (and decresing) relative to the Rate parameter for my plug-in in the Track FX (or FX: Track 1) window. Now it says for example 1024/1474 spls, at Playback Rate of 4.0.
Any ideas? Or how to debug these kinds of problems?
EDIT:
There's something wrong in the buffer code.
EDIT2:
Fixed!
Last edited by mviljamaa; 06-20-2015 at 10:23 AM.
|