Experimenting with sound timing

I put a while loop around the sounds, and I'm trying to see if there is
a correlation between the sample rate and the how long the while loop
should be.