How to edit default Audio playback and Recording devices in Matlab

1 view (last 30 days)
If I perform a getdevinfo on Matlab, I see a bunch of audio devices. I am using a 10 input, 14 output audio interface. Now the way this is detected in Matlab is,first device ID is Analog 1-2 channels, 2 device ID is for my computers sound card - Realtek, 3 is Analog 3-4, 4th is SPDIF 1-2, 5th is Analog 5-6....
I need to sort them out and place them in a order. Is there a way I could do that?

Accepted Answer

Daniel Shub
Daniel Shub on 28 Sep 2011
You might want to look into the psychtoolbox ( http://psychtoolbox.org/HomePage ) implementation of portaudio. It allows you to specify the device number.

More Answers (1)

Walter Roberson
Walter Roberson on 23 Sep 2011
Are you trying to group the analog channels all together in one device so that you can addchannel() them relative to one device instead of working with distinct devices?
If so then I do not recall having encountered any general method of doing that.
On the other hand, when I was looking at the user manual for your 10x14 device in response to one of your earlier questions, I recall that there was a paragraph indicating that the device could be configured as a set of stereo pairs for backwards compatibility with an older interface. If you are not forced to use that older interface, then possibly just configuring it out of that mode might be sufficient.
  1 Comment
Ajay Kumar
Ajay Kumar on 27 Sep 2011
Yes, you are right. It doesn't work either way. The problem is that, when I check for the Audio Interfaces being connected using getAudio devices, I see a 1x19 struct. Now, device 19 is the sound card with all channels on it. If I use pa_wavplayrecord, it returns me an error indicating that there is a problem playing with the device and recording from the device.
However, in audition it works great.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!