---
title: "CMTimebaseCreateWithSourceClock(allocator:sourceClock:timebaseOut:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimebasecreatewithsourceclock(allocator:sourceclock:timebaseout:)"
---

# CMTimebaseCreateWithSourceClock(allocator:sourceClock:timebaseOut:)

Creates a timebase by using a source clock.

## Declaration

```swift
func CMTimebaseCreateWithSourceClock(allocator: CFAllocator?, sourceClock: CMClock, timebaseOut: UnsafeMutablePointer<CMTimebase?>) -> OSStatus
```

## Parameters

- `allocator`: The allocator to use for creating the timebase.
- `sourceClock`: The source clock.
- `timebaseOut`: Receives the timebase the function creates.

## See Also

### Creating Timebases

- [CMTimebaseCreateWithSourceTimebase(allocator:sourceTimebase:timebaseOut:)](coremedia/cmtimebasecreatewithsourcetimebase(allocator:sourcetimebase:timebaseout:).md)
