This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

setSamplesPerFrame

Class: audioPluginSource

Set frame size returned by the plugin (MATLAB environment only)

Syntax

setSamplesPerFrame(myAudioSourcePlugin,frameSize)

Description

setSamplesPerFrame(myAudioSourcePlugin,frameSize) sets the frame size (rows) that the source plugin, myAudioSourcePlugin, must return in subsequent calls to its processing function. Specify frameSize as a real integer greater than or equal to 0. setSamplesPerFrame enables the MATLAB® environment to mimic behavior in a digital audio workstation (DAW) environment.

Note

Do not use setSamplesPerFrame in a generated plugin. If you call setSamplesPerFrame in your authored plugin, generateAudioPlugin throws an error.

Introduced in R2016a