sampleDuration(_:)
Provides the native sample duration of the object to which the effect is applied.
Declaration
func sampleDuration(_ duration: UnsafeMutablePointer<CMTime>!)Parameters
- duration:
The sample duration time, expressed in
CMTime.
Mentioned in
Discussion
Motion provides the sample duration of the project. Final Cut Pro provides the sample duration of the clip to which the effect is applied, not the sample duration for the timeline.
See Also
Accessing Timing Values
frameDuration(_:)startTime(forEffect:)durationTime(forEffect:)startTimeOfInput(toFilter:)durationTimeOfInput(toFilter:)start(_:ofImageParameter:)durationTime(_:ofImageParameter:)inPointTimeOfTimeline(forEffect:)outPointTimeOfTimeline(forEffect:)timelineTime(_:fromInputTime:)timelineTime(_:fromImageTime:forParameterID:)inputTime(_:fromTimelineTime:)imageTime(_:forParameterID:fromTimelineTime:)fieldOrderForInput(toFilter:)timelineFpsNumerator(for:)