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
Name | Data Type | Description |
---|---|---|
Play | Exec | Play the audio source. |
Stop | Exec | Stop the audio source. |
Pause | Exec | Pause the audio source. |
Resume | Exec | Resume the audio source. |
Loop Amount | Number | Set the amount value for the loop. |
Audio Resource | Audio Source | The audio source you want to play. |
Output
Name | Data Type | Description |
---|---|---|
Audio | Audio Stream | The audio source. Connect it to a Speaker to play. |
On Play | Exec | Execute the next node when the audio source starts playing. |
On Stop | Exec | Execute the next node when the audio source stops playing. |
On Finish | Exec | Execute 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.