audiodevinfo
Information about audio device
Syntax
Description
returns information about
the input and output audio devices on the system.info
= audiodevinfo
returns the number of input devices on the system if nDevices
= audiodevinfo(IO
)IO
is
1
, and returns the number of output devices on the system if
IO
is 0
.
Examples
Input Arguments
Output Arguments
Limitations
These limitations apply when using
audiodevinfo
in MATLAB® Online™ or MATLAB Web App Server™:audiodevinfo
only returns information about output audio devices.The value of
nBits
is ignored. For instance, when you callsupport = audiodevinfo(IO,ID,Fs,nBits,nChannels)
,audiodevinfo
returns a logical1
if the values ofFs
andnChannels
that you specified match the default sample rate and number of channels of the output audio device. It does not matchnBits
against the default number of bits per sample of the output device.Similarly, when you call
ID = audiodevinfo(IO,Fs,nBits,nChannels)
,audiodevinfo
returns information about an output audio device if the default sample rate and number of channels of the output device match the values ofFs
andnChannels
that you specified. It does not matchnBits
against the number of bits per sample that you specified.'DriverVersion'
is not supported.
More About
Tips
Audio playback in MATLAB Online and MATLAB Web App Server are supported in Google Chrome™.