Playing synchronous sounds on two different speakers out of a set of 8 randomly
1 次查看(过去 30 天)
显示 更早的评论
I just downloaded p_wavplaya to play multichannel sounds. I also have PsychToolBox's PsychPortAudio.
I plan to use it to play sounds on 8 speakers. I have a slight problem with implementing it though. I need to simultaneously play 2 sounds, one always from speaker number 3 and one from the other 7.
pa_wavplay([stdSound cmpSound], fs, [deviceidstd deviceid], 'asio')
deviceidstd is my device ID 2, which is where the 3rd speaker sits and deviceid takes on a variable depending on which speaker my randomizer selects for that trial.
I have not yet tested it out on the 8-channel sound card, but I was wondering if this sort of a syntax works? stdSound and cmpSound are both Nx2 matrices. stdSound should play from deviceidstd and cmpSound should play from deviceid. Because I want them to be synchronous, I will not code them one after the other.
Will this work? If not, I'd be grateful if you have any other suggestions.
Thanks
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Using audio files 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!