Class LtcTimecodeSource
A component that reads timecodes from an LTC audio stream.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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
Declaration
public override FrameRate FrameRate { get; }
Property Value
Type | Description |
---|---|
FrameRate |
Overrides
FriendlyName
Declaration
public override string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
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)
Declaration
protected override bool TryPollTimecode(out FrameRate frameRate, out Timecode timecode)
Parameters
Type | Name | Description |
---|---|---|
FrameRate | frameRate | |
Timecode | timecode |
Returns
Type | Description |
---|---|
bool |