AudioPluginSource testbench error: output size

조회 수: 4 (최근 30일)
Andreas Almqvist
Andreas Almqvist 2017년 2월 27일
답변: Charlie DeVane 2019년 4월 24일
I keep getting errors at the point of validation of the plugin.
I set:
out = plugin.matrix
to get the matrix out of the plugin.
The matrix I want to output have the size: 2 rows, 503 columns. I have also tried putting in as a 503 rows, 2 columns.
I get either one of these 2 errors, depending on the matrix config:
Error('ValidateAudioPlugin:BadOutputWidth') Width of output 1 was 503 but should have been 2 (OutputChannels(1)).
Error('ValidateAudioPlugin:BadOutputFrameSize Output 1 produced a frame size of 503 but should have matched the input frame size of 2.
No matter how it lay the matrix, either 2 rows 503 columns or 503 columns 2 rows, matlab still wont accept it.
I also reshape matrix to change it's size with every change of samples per frame that the testbench do, but I still receive the same errors.
Anyone have a hint on how to go on with this?

답변 (1개)

Charlie DeVane
Charlie DeVane 2019년 4월 24일
Hi Andreas,
The size of the output is constrained by the VST plugin API. If your code produces the wrong size output, your generated plugin might crash the DAW it is running in. validateAudioPlugin checks these constraints to help ensure your plugin is safe to run.
You can choose the number of columns (channels) you want to output, using the 'OutputChannels' name-value pair in audioPluginInterface. The default value is 2 (stereo).
You cannot choose the number of rows (samples) to output. This is determined by the plugin host (DAW), and can vary from call to call. Use getSamplesPerFrame(plugin) to determine how many rows the DAW wants you to output.
hth,
Charlie

카테고리

Help CenterFile Exchange에서 Audio Plugin Creation and Hosting에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by