주요 콘텐츠

setup

Configure audio device for operation

Since R2025a

    Description

    setup(as) configures the audiostreamer device for playing and/or recording. Calling this function is optional, since play, record, and playrec automatically setup the device when called for the first time.

    setup(as,sampleAudio) uses the sample audio data to determine the number of channels to open on the device.

    Input Arguments

    collapse all

    The audiostreamer object to configure.

    Sample audio data, specified as a column vector or matrix. The number of columns in the sample audio determines the number of channels opened on the device.

    Data Types: single | double

    Version History

    Introduced in R2025a