CMTimeMultiplyByFloat64(_:multiplier:)
Returns the result of multiplying a time by a floating-point multiplier.
Declaration
func CMTimeMultiplyByFloat64(_ time: CMTime, multiplier: Float64) -> CMTimeParameters
- time:
A time value to multiply.
- multiplier:
A 64-bit floating-point multiplier value.
Return Value
A time structure that represents the product of the multiplied time.
Discussion
The result has the same timescale as the passed time argument. If the result’s timescale is less than 65536, the system repeatedly doubles it until it’s at least that value. If the result overflows, the system repeatedly halves the result until no overflow occurs. The system applies the default rounding method when converting the result to this timescale. If the result’s value still overflows when its timescale is 1, then the result is positive or negative infinity, depending on the direction of the overflow. If rounding occurs for any reason, the system sets the result’s hasBeenRounded flag. It also sets this flag if the time argument has hasBeenRounded set. If the time operand is invalid, the result is invalid. If the time operand is valid but infinite, the result is infinite and of an appropriate sign, based on the signs of both operands. If the time operand is valid, but indefinite, the result is indefinite.