ProtoFlux:Playback State

From Resonite Wiki
Revision as of 22:01, 4 May 2024 by Decoy (talk | contribs) (Created page with "{{#Invoke:ProtoFlux|GenerateUI |Name=Playback State |Category=Media |Inputs= [ {"Name":"Target", "Type":"IPlayable"} ] |Outputs= [ {"Name":"IsPlaying", "Type":"bool"}, {"Name":"Loop", "Type":"bool"}, {"Name":"Position", "Type":"float"}, {"Name":"NormalizedPosition", "Type":"float"}, {"Name":"ClipLength", "Type":"float"}, {"Name":"Speed", "Type":"float"} ] |}} PlayBack State is a ProtoFlux node that provides information of a (IPlayable). This can be u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Playback State
Target
IsPlaying
Loop
Position
NormalizedPosition
ClipLength
Speed
Media

PlayBack State is a ProtoFlux node that provides information of a (IPlayable). This can be used to get information of if the a source is playing, the current time position, and the length of the audio source.

Inputs

Source (IPlayable)

The IPlayable to provide information from.

Outputs

IsPlaying (Bool)

Tells if the source is playing.

Loop (Bool)

Tells if the source is set to loop.

Position (Float)

The playing position of the current target in seconds as a float.

NormalizedPosition (Float)

The playing position of the current target remapped to a float minimum of 0 and maximum of 1. This essentially remaps the song length to 0 being the start and 1 being the end.

ClipLength (Float)

The target length in seconds, as a float.

Speed (Float)

The target current playing speed. 1 is equivalent to x1.0.

Examples