<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxTimingAPI_v4/sampleDuration(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxTimingAPI_v4(im)sampleDuration:"
  },
  "title" : "sampleDuration(_:)"
}
-->

# sampleDuration(_:)

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

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

## Parameters

`duration`

The sample duration time, expressed in `CMTime`.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)