Added sample-rate variable for cheaper sound cards