# SampleTimeline

URL: https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/sampletimeline/

Defined in: [clock.ts:49](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/clock.ts#L49)

Maps an audio sample counter onto the broadcast timeline.

## Properties

### firstSampleUs

```ts
readonly firstSampleUs: number;
```

Defined in: [clock.ts:53](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/clock.ts#L53)

The broadcast time of sample 0.

***

### sampleRate

```ts
readonly sampleRate: number;
```

Defined in: [clock.ts:51](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/clock.ts#L51)

Samples per second, per channel.

## Methods

### timestampUs()

```ts
timestampUs(sampleIndex): number;
```

Defined in: [clock.ts:55](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/clock.ts#L55)

The broadcast time of the sample at this index: the first sample's time plus whole elapsed microseconds.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `sampleIndex` | `number` |

#### Returns

`number`
