Random Audio Node Player

An asset by SanderVanhove
The page banner background of a mountain and forest
Random Audio Node Player thumbnail image
Random Audio Node Player thumbnail image
Random Audio Node Player hero image

Quick Information

0 ratings
Random Audio Node Player icon image
SanderVanhove
Random Audio Node Player

This Godot Engine plugin plays a random audio stream child node.Ideal if you want control over all the settings per audio stream, like volume, audio bus, pitch, etc.# Usage1. Add the RandomAudioNodePlayer to your scene.2. Add AudioStreamPlayer, AudioStreamPlayer2D or AudioStreamPlayer3D nodes as children.3. Call play() on the RandomAudioNodePlayer.# Features* Play random AudioStreamPlayer(2D/3D) nodes.* Doesn't play the same node twice.* Interface is similar to an AudioStreamPlayer.# Class signature## Signals* finished()Emitted when one stream is `finished`.* finished_all()Emitted when all streams are `finished` and nothing is playing.## Property Descriptions* playing: bool, (set_playing, get_playing)If `true`, a child audio stream node is playing* autoplay: bool, (set_autoplay, get_autoplay)If `true`, audio plays when added to scene tree.* paused: bool, (set_paused, get_paused)If `true`, the playback of all child audio streams are paused.## Method Descriptions* play: voidPlays a random audio stream node that is a child of this node.* stop: voidStop all the playing audio stream nodes.* get_playing_nodes: Array[Node]Returns all the playing audio stream nodes.

Supported Engine Version
3.4
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Random Audio Node Player

This Godot Engine plugin plays a random audio stream child node.

Ideal if you want control over all the settings per audio stream, like volume, audio bus, pitch, etc. Check the alternatives for other options.

Usage

  1. Add the RandomAudioNodePlayer to your scene.
  2. Add AudioStreamPlayer, AudioStreamPlayer2D or AudioStreamPlayer3D nodes as children.
  3. Call play() on the RandomAudioNodePlayer.

Features

  • Play random AudioStreamPlayer(2D/3D) nodes.
  • Doesn't play the same node twice.
  • Interface is similar to an AudioStreamPlayer.

Class signature

Signals

  • finished() Emitted when one stream is finished.

  • finished_all() Emitted when all streams are finished and nothing is playing.

Property Descriptions

  • playing: bool (set_playing, get_playing) If true, a child audio stream node is playing

  • autoplay: bool (set_autoplay, get_autoplay) If true, audio plays when added to scene tree.

  • paused: bool (set_paused, get_paused) If true, the playback of all child audio streams are paused.

Method Descriptions

  • play: void Plays a random audio stream node that is a child of this node.

  • stop: void Stop all the playing audio stream nodes.

  • get_playing_nodes: Array[Node] Returns all the playing audio stream nodes.

Alternative

This Godot Engine plugin plays a random audio stream child node.

Ideal if you want control over all the settings per audio stream, like volume, audio bus, pitch, etc.

# Usage

1. Add the RandomAudioNodePlayer to your scene.
2. Add AudioStreamPlayer, AudioStreamPlayer2D or AudioStreamPlayer3D nodes as children.
3. Call play() on the RandomAudioNodePlayer.

# Features

* Play random AudioStreamPlayer(2D/3D) nodes.
* Doesn't play the same node twice.
* Interface is similar to an AudioStreamPlayer.

# Class signature

## Signals

* finished()
Emitted when one stream is `finished`.

* finished_all()
Emitted when all streams are `finished` and nothing is playing.

## Property Descriptions

* playing: bool, (set_playing, get_playing)
If `true`, a child audio stream node is playing

* autoplay: bool, (set_autoplay, get_autoplay)
If `true`, audio plays when added to scene tree.

* paused: bool, (set_paused, get_paused)
If `true`, the playback of all child audio streams are paused.

## Method Descriptions

* play: void
Plays a random audio stream node that is a child of this node.

* stop: void
Stop all the playing audio stream nodes.

* get_playing_nodes: Array[Node]
Returns all the playing audio stream nodes.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Random Audio Node Player icon image
SanderVanhove
Random Audio Node Player

This Godot Engine plugin plays a random audio stream child node.Ideal if you want control over all the settings per audio stream, like volume, audio bus, pitch, etc.# Usage1. Add the RandomAudioNodePlayer to your scene.2. Add AudioStreamPlayer, AudioStreamPlayer2D or AudioStreamPlayer3D nodes as children.3. Call play() on the RandomAudioNodePlayer.# Features* Play random AudioStreamPlayer(2D/3D) nodes.* Doesn't play the same node twice.* Interface is similar to an AudioStreamPlayer.# Class signature## Signals* finished()Emitted when one stream is `finished`.* finished_all()Emitted when all streams are `finished` and nothing is playing.## Property Descriptions* playing: bool, (set_playing, get_playing)If `true`, a child audio stream node is playing* autoplay: bool, (set_autoplay, get_autoplay)If `true`, audio plays when added to scene tree.* paused: bool, (set_paused, get_paused)If `true`, the playback of all child audio streams are paused.## Method Descriptions* play: voidPlays a random audio stream node that is a child of this node.* stop: voidStop all the playing audio stream nodes.* get_playing_nodes: Array[Node]Returns all the playing audio stream nodes.

Supported Engine Version
3.4
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers