osx - Audiorecorder, Choosing the input channels. Mac and RME -
i trying record sound through external sound card: rme fireface 400.
this code using:
ao = audioplayer(mls_o,fs,16,5); % mls_o signal played. ai = audiorecorder(fs,16,2,5); % 2 channels how assign them play(ao);%playing recordblocking(ai,1,2);%recording y_rec=getaudiodata(ai); delete(ai);% deleting objects delete(ao);
i can chose number of channels, not address them.
audiorecorder supports 2 channels , fireface have 8 input channels. have use first 2 analog: ch5 , ch6. however, default audio recorder 1st , 2nd one, mic inputs.
otherwise know other way of doing that?
i don't think can audiorecorder
object. check out playrec
library , pa-wavplay
fileexchange submission, either of should capable of doing need. believe psychtoolbox allows this, might overkill needs.
Comments
Post a Comment