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.

getSampleRate

Class: audioPlugin

Get sample rate at which the plugin is run

Syntax

sampleRate = getSampleRate(myAudioPlugin)

Description

sampleRate = getSampleRate(myAudioPlugin) returns the sample rate in Hz at which the plugin is being run.

  • In a digital audio workstation (DAW) environment, the DAW user sets the sample rate. getSampleRate interacts with the DAW to determine the sample rate.

  • In the MATLAB® environment, getSampleRate returns the value set by a previous call to setSampleRate. If setSampleRate has not been called, getSampleRate returns the default value, 44100.

Introduced in R2016a