ProtoFlux:Playback Drive

From Resonite Wiki
Playback Drive
StartDrive
OnStartDrive
StopDrive
OnStopDrive
ForceResync
OnResync
Target
IsDriving
NormalizedPosition
MaximumPositionError
Speed
Play
Loop
Media

Playback Drive is a node that will take a SyncPlayback and allow you to start or stop driving it to a set of provided playback settings and values. The driving of the SyncPlayback is non networked.

Inputs

StartDrive (Call)

Starts driving the Target (SyncPlayback) in a non networked fashion, which essentially makes the provided Target (SyncPlayback) no longer synced until StopDrive (Call) is called.

StopDrive (Call)

Stop driving the Target (SyncPlayback), making it networked again.

ForceResync (Call)

When this is impulsed, The node will try to sync the current Target (SyncPlayback) position that the local user sees with everyone else in a session. (See Impulses for what a local user on an Impulse means) If this is called and NormalizedPosition (float) does not have an input, it will do nothing.

Target (SyncPlayback)

The Network Synced Playable that will become un-networked via being driven by this node.

NormalizedPosition (float)

The position to drive Target (SyncPlayback) to from 0 to 1.

Maximum Position Error (float)

The the max amount the position on Target (SyncPlayback) can vary from NormalizedPosition (float).

Speed (float)

The a multiplier for the playback speed of Target (SyncPlayback).

Play (bool)

If the Target (SyncPlayback) should be playing. (default true if normalized position is given and moving)

Loop (bool)

If the Target (SyncPlayback) should loop. May clash when providing NormalizedPosition (float)

Outputs

OnStartDrive (Continuation)

When StartDrive (Call) is impulsed and it can drive Target (SyncPlayback)

OnStopDrive (Continuation)

When StopDrive (Call) is impulsed and this node was driving Target (SyncPlayback)

OnResync (Continuation)

sends an impulse when ForceResync (Call) succeeds.

IsDriving (bool)

If the Target (SyncPlayback) is currently driving. (Aka StartDrive (Call) was called but not StopDrive (Call) yet.)

Examples