ProtoFlux:PlaybackState: Difference between revisions

From Resonite Wiki
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..."
 
m YoshBot moved page ProtoFlux:Playback State to ProtoFlux:PlaybackState: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 55: Line 55:


[[Category:ProtoFlux:Media]]
[[Category:ProtoFlux:Media]]
[[Category:ContinuouslyChanging nodes]]

Latest revision as of 00:30, 21 August 2025

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