Change default input rate to 1024000. Cast ints to float before calculating rate multipliers.