---
title: "sampleDuration(_:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxtimingapi_v4/sampleduration(_:)"
---

# sampleDuration(_:)

Provides the native sample duration of the object to which the effect is applied.

## Declaration

```swift
func sampleDuration(_ duration: UnsafeMutablePointer<CMTime>!)
```

## Parameters

- `duration`: The sample duration time, expressed in CMTime.

## Mentioned in

Understanding time in FxPlug

## Discussion

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. note: In Final Cut Pro, the sample duration is equal to the object’s native frame duration for progressive clips, but half of the frame duration for interlaced clips.

## See Also

### Accessing Timing Values

- [frameDuration(_:)](professional_video_applications/fxtimingapi_v4/frameduration(_:).md)
- [startTime(forEffect:)](professional_video_applications/fxtimingapi_v4/starttime(foreffect:).md)
- [durationTime(forEffect:)](professional_video_applications/fxtimingapi_v4/durationtime(foreffect:).md)
- [startTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/starttimeofinput(tofilter:).md)
- [durationTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/durationtimeofinput(tofilter:).md)
- [start(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/start(_:ofimageparameter:).md)
- [durationTime(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/durationtime(_:ofimageparameter:).md)
- [inPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/inpointtimeoftimeline(foreffect:).md)
- [outPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/outpointtimeoftimeline(foreffect:).md)
- [timelineTime(_:fromInputTime:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:frominputtime:).md)
- [timelineTime(_:fromImageTime:forParameterID:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:fromimagetime:forparameterid:).md)
- [inputTime(_:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/inputtime(_:fromtimelinetime:).md)
- [imageTime(_:forParameterID:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/imagetime(_:forparameterid:fromtimelinetime:).md)
- [fieldOrderForInput(toFilter:)](professional_video_applications/fxtimingapi_v4/fieldorderforinput(tofilter:).md)
- [timelineFpsNumerator(for:)](professional_video_applications/fxtimingapi_v4/timelinefpsnumerator(for:).md)
