Return a structure describing the available audio input and output devices.
The devinfo structure has two fields "input"
and "output"
. The value of each field is a structure array with fields "Name"
, "DriverVersion" and "ID"
describing an audio device.
If the optional argument io is 1, return information about input devices only. If it is 0, return information about output devices only. If io is the only argument supplied, return the number of input or output devices available.
If the optional argument id is provided, return information about the corresponding device.
If the optional argument name is provided, return the id of the named device.
Given a sampling rate, bits per sample, and number of channels for an input or output device, return the ID of the first device that supports playback or recording using the specified parameters.
If also given a device ID, return true if the device supports playback or recording using those parameters.
© 1996–2018 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/interpreter/Audio-Device-Information.html