Skip to main content

Audio Resource Controller

audio resource controller

Use Audio Resource Controller to connect to a speaker as an output to play and control the audio source. Audio Resource Controller is in the Audio category.

Input

NameData TypeDescription
PlayExecPlay the audio source.
StopExecStop the audio source.
PauseExecPause the audio source.
ResumeExecResume the audio source.
Loop AmountNumberSet the amount value for the loop.
Audio ResourceAudio SourceThe audio source you want to play.

Output

NameData TypeDescription
AudioAudio StreamThe audio source. Connect it to a Speaker to play.
On PlayExecExecute the next node when the audio source starts playing.
On StopExecExecute the next node when the audio source stops playing.
On FinishExecExecute the next node when the audio source finishes playing on each loop.

Example

Select the effecthouseAudio audio clip in the Audio Resource node, connect to the Audio Resource Controller and Speaker to output the audio stream. When the camera detects a hand palm open, it will trigger the audio to play. When the audio is playing, it will trigger the alien to appear. When the play finishes, the alien will disappear.

audio resource controller node