fixing sample rate decoding