Table of Contents

Method GetInputAudioSyncOffset

Namespace
OBSStudioClient
Assembly
OBSClient.dll

GetInputAudioSyncOffset(InputRef, CancellationToken)

Gets the audio sync offset of an input.

public Task<int> GetInputAudioSyncOffset(InputRef input, CancellationToken cancellationToken = default)

Parameters

input InputRef

The input to get the audio sync offset of, by name or by UUID.

cancellationToken CancellationToken

A token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.

Returns

Task<int>

Audio sync offset in milliseconds.

Remarks

Note: The audio sync offset can be negative too!