Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

step

System object: dsp.AudioRecorder
Package: dsp

Record audio from recording device

    Note:   The dsp.AudioRecorder object will be removed in a future release. Existing instances of the object continue to run. For new code, use the audioDeviceReader object from Audio System Toolbox™ instead.

Syntax

AUDIO = step(H)
[AUDIO,Overrun] = step(H)

Description

    Note:   Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

AUDIO = step(H) reads one frame of audio samples from the selected audio input device.

[AUDIO,Overrun] = step(H) reads one frame of audio samples from the selected audio input device. The output Overrun indicates the number of samples dropped due to queue overrun since the last call to the step method. This syntax applies when you set the OutputNumOverrunSamples property to true.

Was this topic helpful?