Device ID problems
显示 更早的评论
Hey guys,
So I am doing this experiment where I need to send out audio to 8 different speakers. 1 speaker is constant in all of the trials. In each trial, 2 sounds are sent out simultaneously. The other sound is randomly sent to one of the other 7. I have this script here which was sent to me by a colleague which can play multichannel sounds.
The syntax for the multichannel sound player is this -
pawavplaya(buffer', deviceid, Fs, 0, 0, 0, -1);
In her program, my colleague only uses one device, i.e. deviceid = 0. the 'buffer' which is the sound has a Nx2 matrix which contains the sound. If one column is 0, only one lead plays out the sound in one speaker and so on.
would anyone here know how to get deviceids for all 8 speakers? I tried the default matlab command but it doesn't work on a mac!!
1 个评论
Daniel Shub
2011-11-18
How many soundcards do you have? How many channels do they have?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Using audio files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!