Class LtcTimecodeSource
A component that reads timecodes from an LTC audio stream.
Namespace: Unity.LiveCapture.Ltc
Syntax
public class LtcTimecodeSource : MonoBehaviour, ITimecodeSource, IRegistrable
Properties
FrameRate
The rate at which timecodes are generated.
Declaration
public FrameRate FrameRate { get; }
Property Value
Type | Description |
---|---|
FrameRate |
Implements
FriendlyName
Get a human-readable name for the instance.
Declaration
public string FriendlyName { get; }
Property Value
Type | Description |
---|---|
String |
Implements
Id
Get the unique identifier for this instance.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
Implements
Remarks
The ID should not be null or empty, and is expected to remain constant for the life of the instance.
Now
The latest timecode available at the source.
Declaration
public Timecode Now { get; }
Property Value
Type | Description |
---|---|
Timecode |
Implements
Methods
SetDevice(String)
Sets the audio device used as the LTC audio input.
Declaration
public void SetDevice(string device)
Parameters
Type | Name | Description |
---|---|---|
String | device | The device to use. If null or empty the default audio input will be used. |
Remarks
You can query the available devices using Microphone.devices
.