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.

info

Get audio device information

Syntax

infoStruct = info(obj)

Description

example

infoStruct = info(obj) returns a structure, infoStruct, containing information about the System object™, obj.

Examples

collapse all

Create an object of the audioDeviceReader System object™ and then call info to return a structure containing information about the selected driver, device name, and the maximum number of input channels.

deviceReader = audioDeviceReader;
info(deviceReader)

Create an object of the audioDeviceWriter System object™ and then call info to return a structure containing information about the selected driver, device name, and the maximum number of output channels.

deviceWriter = audioDeviceWriter;
info(deviceWriter)

Create an object of the audioPlayerRecorder System object™ and then call info to return a structure containing information about the selected driver, device name, and the maximum number of input and output channels.

playRec = audioPlayerRecorder;
info(playRec)

Input Arguments

collapse all

System object to get information from.

Output Arguments

collapse all

Struct containing information about the System object, obj. Fields of the struct depend on the System object.

Introduced in R2016a