Information about audio device
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
.
These limitations apply when using audiodevinfo
in MATLAB®
Online™:
audiodevinfo
only returns information about output audio
devices.
The value of nBits
is ignored. For instance, when you call
support = audiodevinfo(IO,ID,Fs,nBits,nChannels)
,
audiodevinfo
returns a logical 1
if the values of
Fs
and nChannels
that you specified match the default
sample rate and number of channels of the output audio device. It does not match
nBits
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 of
Fs
and nChannels
that you specified. It does not match
nBits
against the number of bits per sample that you specified.
'DriverVersion'
is not supported.
Audio playback in MATLAB Online is supported in Google Chrome™.