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)
| Parameter | Description |
|---|---|
| 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. |
| Parameter | Description |
|---|---|
| devices | struct array |
| name | a string: name of the audio device specified by io and id. |
| id | an integer value. |
| 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.
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
| Version | Description |
|---|---|
| 1.0.0 | initial version |