audiodevinfo
audio · scripts/audio/audiodevinfo.m
AUDIODEVINFO Information about the audio input and output devices.
INFO = AUDIODEVINFO
Structure with the fields 'input' and 'output'; each is a structure
array (one element per device) with the fields Name, DriverVersion
and ID. Device IDs start at 0.
N = AUDIODEVINFO (IO)
Number of devices; IO is 0 for output and 1 for input devices.
NAME = AUDIODEVINFO (IO, ID)
Name of the device with the given ID.
ID = AUDIODEVINFO (IO, NAME)
ID of the device with the given name (-1 when there is none).
DRV = AUDIODEVINFO (IO, ID, 'DriverVersion')
Driver description of the device.
ID = AUDIODEVINFO (IO, FS, NBITS, NCHANS)
ID of the first device that supports the format (-1 when none).
TF = AUDIODEVINFO (IO, ID, FS, NBITS, NCHANS)
True when the device supports the format.
Devices are reached through the Java Sound API of the bundled Java
runtime. On a machine without audio support the device lists are empty
(or an error says that audio is not available).