How to edit default Audio playback and Recording devices in Matlab

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(1 个)

Walter Roberson
Walter Roberson 2011-9-23
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 个评论
Ajay Kumar
Ajay Kumar 2011-9-27
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Using audio files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by