function playsound(y,Fs)

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

[n m] = size(y);
p = audioplayer(y, Fs);
play(p, [1 n]);