Documentation

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

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?