Use a double when converting millisecond offsets to byte offsets