Contents

convertScale(_:method:)

Converts the source time to a new timescale using the specified rounding method.

Declaration

func convertScale(_ newTimescale: Int32, method: CMTimeRoundingMethod) -> CMTime

Parameters

  • newTimescale:

    The timescale to use for the converted time.

  • method:

    The rounding method to apply.

Return Value

A converted time value.

See Also

Changing the Timescale