Why are "audiodevinfo", "audioplayer", and "audiorecorder" unable to locate more than two channels?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 23 Sep 2021
Edited: MathWorks Support Team
on 17 Apr 2023
I have a multi-channel audio device with more than two channels. I am trying to use "audiodevinfo", "audioplayer", and "audiorecorder", but these functions can only find two channels. Why is this happening and how can I perform operations with multiple channels?
Accepted Answer
MathWorks Support Team
on 12 Apr 2023
Edited: MathWorks Support Team
on 17 Apr 2023
The "audiodevinfo", "audioplayer", and "audiorecorder" functions from MATLAB's standard set of tools operate with a maximum of two channels. To build an audio system with more than two channels in MATLAB, you can use system objects available in the DSP Systems Toolbox or Audio Toolbox.
In older versions of MATLAB, the "dsp.AudioPlayer" and "dsp.AudioRecorder" system objects were recommended as multi-channel replacements for "audioplayer" and "audiorecorder". However, as of MATLAB R2016a, "dsp.AudioPlayer" and "dsp.AudioRecorder" were scheduled for removal in future releases. Please see the release notes below by running the following command in MATLAB R2016a:
>> web(fullfile(docroot, 'dsp/release-notes.html'))
For newer releases, "audioDeviceReader" from the DSP Systems Toolbox is recommended as a multi-channel replacement for "audiorecorder". Similarly, "audioDeviceWriter" from the Audio Toolbox is recommended as a multi-channel replacement for "audioplayer". Documentation on the usage of both system objects is provided below:
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!