Class LtcTimecodeSource
A component that reads timecodes from an LTC audio stream.
Inherited Members
Namespace: Unity.LiveCapture .Ltc
Assembly: Unity.LiveCapture.Ltc.dll
Syntax
[ExecuteAlways]
[CreateTimecodeSourceMenuItem("LTC Timecode Source", 0)]
[AddComponentMenu("Live Capture/Timecode/LTC Timecode Source")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-ltc-timecode-source.html")]
public class LtcTimecodeSource : TimecodeSource, ITimecodeSource, IRegistrable
Properties
FrameRate
The frame rate of the timecode source.
Declaration
public override FrameRate FrameRate { get; }
Property Value
Type | Description |
---|---|
Frame |
Overrides
Remarks
This value may change during a frame.
FriendlyName
Get a human-readable name for the instance.
Declaration
public override string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
OnDisable()
This method is called by Unity when the component becomes disabled.
Declaration
protected override void OnDisable()
Overrides
OnEnable()
This method is called by Unity when the component becomes enabled and active.
Declaration
protected override void OnEnable()
Overrides
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
.
TryPollTimecode(out FrameRate, out Timecode)
Gets the latest timecode from the timecode source.
Declaration
protected override bool TryPollTimecode(out FrameRate frameRate, out Timecode timecode)
Parameters
Type | Name | Description |
---|---|---|
Frame |
frameRate | The rate at which the timecode is incremented. |
Timecode | timecode | The most recent timecode. |