Fixed sample rate issues for playing tones.