How to edit default Audio playback and Recording devices in Matlab

3 ビュー (過去 30 日間)
Ajay Kumar
Ajay Kumar 2011 年 9 月 23 日
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 Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by