Modified looping a little bit.
Removed sound rate as a parameter for the stream.