i have found somthing in data acquisition but it not work succefuly i think some timing can anybody help , the sound output not synchronized i inveresed the signal
============================
ai = analoginput('winsound');
addchannel(ai,1:2);
set(ai,'SampleRate',44100)
set(ai,'SamplesPerTrigger',44100)
ao = analogoutput('winsound');
addchannel(ao,1:2);
set(ao,'SampleRate',44100)
for k=1:10
start(ai)
wait(ai,3)
data = getdata(ai);
putdata(ao,[ -data ])
start(ao)
end
delete(ai)
delete(ao)
clear ao