I have read many of the tutorials but I may have missed this detail.
By default 'in' is an array doubles of size 1024×2. I think this represents one sample, or one 'snapshot' in time of audio. Using the AudioTestBench with the code below, I am able to see that process is called every .02 seconds, which indicates a sample rate of 50 Hz, but I am expecting a sample rate of 48000 Hz. If 'in' contains more than one frame, how can I access it??
classdef testPlugin < audioPlugin properties (Constant) PluginInterface = audioPluginInterface() end methods function out = process(plugin, in) toc; tic; whos in; out = zeros(size(in)); end end end
Best Answer