Selects a valid sample rate instead of hard coded.