ProtoFlux:Play One Shot: Difference between revisions

From Resonite Wiki
Create Play One Shot ProtoFlux Node Page
 
Added link for the audio clip type.
 
(4 intermediate revisions by 3 users not shown)
Line 31: Line 31:
|}}
|}}


Play One Shot is a ProtoFlux node that creates a new audio source under the provided Root ([[Slot]]) (except when ParentUnderRoot ([[Type:Bool|bool]]) is enabled) with the provided parameters.
Play One Shot is a ProtoFlux node that creates a new audio source under the provided Root ([[Slot]]) (except when ParentUnderRoot ([[Type:Bool|bool]]) is enabled) with the provided parameters. Play One Shot is under Audio in the Protoflux Node creation menu


== Inputs ==
== Inputs ==


=== Clip ([[Type:IAssetProvider`1|IAssetProvider`1]]<AudioClip>) ===
=== * ([[Impulses|Call]]) ===
 
Play the audio clip with the provided parameters
 
=== Clip ([[Type:IAssetProvider`1|IAssetProvider`1]]<[[Type:AudioClip|AudioClip]]>) ===


The audio clip to play on the newly created sound object
The audio clip to play on the newly created sound object
Line 61: Line 65:
=== Root ([[Slot]]) ===
=== Root ([[Slot]]) ===


The slot to play the audio under. The audio will not be audible if the slot is part of a disabled hierarchy.
The slot to play the audio under. The audio will not be audible if the slot is part of a disabled hierarchy. If nothing is filled in for this input, the sound will come from the node itself.


=== ParentUnderRoot ([[Type:Bool|bool]]) ===
=== ParentUnderRoot ([[Type:Bool|bool]]) ===
Line 123: Line 127:


[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Audio]]

Latest revision as of 22:29, 22 August 2024

Play One Shot
*
OnStartedPlaying
Clip
Audio
Volume
Speed
Spatialize
SpatialBlend
Point
Root
ParentUnderRoot
Priority
Doppler
MinDistance
MaxDistance
Rolloff
DistanceSpace
MinScale
MaxScale
Group
LocalOnly
Audio

Play One Shot is a ProtoFlux node that creates a new audio source under the provided Root (Slot) (except when ParentUnderRoot (bool) is enabled) with the provided parameters. Play One Shot is under Audio in the Protoflux Node creation menu

Inputs

* (Call)

Play the audio clip with the provided parameters

Clip (IAssetProvider`1<AudioClip>)

The audio clip to play on the newly created sound object

Volume (float)

The volume to play the audio at.

Speed (float)

The speed to play the audio at.

Spatialize (bool)

Whether the audio played will have spatialization.

SpatialBlend (float)

How spatialized the audio played will be.

Point (float3)

The point to play the audio if Root (Slot) is not provided.

Root (Slot)

The slot to play the audio under. The audio will not be audible if the slot is part of a disabled hierarchy. If nothing is filled in for this input, the sound will come from the node itself.

ParentUnderRoot (bool)

Whether to put the audio under the root of the world or not.

Priority (int)

How much priority this audio clip has, which can override others when the buffer is too full. So this audio has more priority to be played in such cases.

Doppler (bool)

Whether the audio clip played should have Doppler. What is Doppler?

MinDistance (float)

The distance the audio stops becoming louder when getting closer to the source.

MaxDistance (float)

The max distance the audio can be heard from until it is inaudible

Rolloff (AudioRolloffMode)

The AudioRolloffMode the audio created should use.

DistanceSpace (AudioDistanceSpace)

The AudioDistanceSpace the audio created should use.

MinScale (float)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


MaxScale (float)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Group (AudioTypeGroup)

What AudioTypeGroup this node is in.

LocalOnly (bool)

Whether this audio should only play locally for the user that fired the node.

Outputs

OnStartedPlaying (Continuation)

When the audio clip has successfully started playing

Audio (AudioOutput)

The Audio Output component created to play the audio. The Get Slot node can be used to get the created slot for the one shot. This will only have a value during the OnStartedPlaying (Continuation) impulse.

Examples