Moved the hardcoded sample rate value to a user settings value.