Get audio devices information.
devices = audiodevinfo()
devices = audiodevinfo('default')
devices = audiodevinfo(io)
name = audiodevinfo(io, id)
id = audiodevinfo(io, name)
id = audiodevinfo(io, rate, bits, channels)
support = audiodevinfo(io, id, rate, bits, channels)
io - input (1) or output (0) device
id - an integer value.
name - a string: name of the audio device to search.
rate - a double scalar: sample rate.
bits - an integer value: bits per sample.
channels - an integer value: number of audio channel.
devices - struct array
name - a string: name of the audio device specified by io and id.
support - a logical: true if values supported or false.
audiodevinfo returns a structure with available audio input and output devices.
devices = audiodevinfo('default') returns a structure with default used audio input and output devices.
1.0.0
initial version
Last updated 3 months ago
info = audiodevinfo() OUTPUT_DEVICE = 0; INPUT_DEVICE = 1; for k = [1:audiodevinfo(OUTPUT_DEVICE)] info.output(k) end for k = [1:audiodevinfo(INPUT_DEVICE)] info.output(k) end