now read sample rate fron header