%this function has the aim to provide a simple platform independant way of
%playing the samples used in this case
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [player] = play_it(sound);
%set standard sample rate
fs = 16000;

%create an audioplayer object
player = audioplayer(sound,fs);

%play the file
play(player);