sampleRate should be a float