Device ID problems

조회 수: 4 (최근 30일)
Abhilash
Abhilash 2011년 11월 18일
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
Daniel Shub 2011년 11월 18일
How many soundcards do you have? How many channels do they have?

댓글을 달려면 로그인하십시오.

채택된 답변

Daniel Shub
Daniel Shub 2011년 11월 18일
Have you tried the sound part of psychtoolbox: http://psychtoolbox.org/HomePage
  댓글 수: 3
Daniel Shub
Daniel Shub 2011년 11월 18일
What part of http://docs.psychtoolbox.org/PsychPortAudio doesn't provide the support for what you want. I am not suggesting it for everything, just as a replacement for pawavplay. It supports 8-channel sound cards and multiple soundcards. It also supports polling to determine device ids.
Abhilash
Abhilash 2011년 11월 22일
I tried both and both don't seem to work for me. I am going to post a new question which should now clear up what exactly I am looking to do.
Thanks for answering! :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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