Improving the way to read bytes from wave file

Now the loop to read the file is based on the number of samples.