Documentation Index
Fetch the complete documentation index at: https://mintlify.com/godotengine/godot/llms.txt
Use this file to discover all available pages before exploring further.
AudioStreamPlayer
Inherits: Node < ObjectDescription
A node for audio playback. The AudioStreamPlayer node plays an audio stream non-positionally. It is ideal for user interfaces, menus, or background music.Properties
The AudioStream resource to be played.
Volume of sound, in decibels.
The audio’s pitch and tempo, as a multiplier of the stream’s sample rate.
If true, this node is playing sounds.
If true, this node calls play when entering the tree.
The target bus name. All sounds from this node will be playing on this bus.
Methods
play
Position in seconds to start playback from (default: 0.0)
stop
seek
get_playback_position
Signals
finished()
Emitted when a sound finishes playing without interruptions.Example Usage
- GDScript
- C#