I have 80 audio files as an experiment stimuli.
I can play 1 audio file but how can I play several files?
% load sound file (make sure that it is in the same folder as this script)
[soundData freq ] = audioread('FS1.wav');
%inidializes sound driver…the 1 pushes for low latency
% opens sound buffer at a different frequency
pahandle = PsychPortAudio('Open', , , 2, );
% loads data into buffer
PsychPortAudio('FillBuffer', pahandle, soundData');
% how many repititions of the sound
%starts sound immediatley
PsychPortAudio('Start', pahandle, repetitions,0);