function playsound(y,Fs)

% playsound(y,Fs)  workaround to play sound on a mac

p = audioplayer(y, Fs);
play(p, [1 (get(p, 'SampleRate') * 3)]);