Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioStreamPlayer¶
Plays back audio non-positionally.
Description¶
Plays an audio stream non-positionally.
To play audio positionally, use AudioStreamPlayer2D or AudioStreamPlayer3D instead of AudioStreamPlayer.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
|
void |
|
void |
stop ( ) |
Signals¶
finished ( )
Emitted when the audio stops playing.
Enumerations¶
enum MixTarget:
MixTarget MIX_TARGET_STEREO = 0
The audio will be played only on the first channel.
MixTarget MIX_TARGET_SURROUND = 1
The audio will be played on all surround channels.
MixTarget MIX_TARGET_CENTER = 2
The audio will be played on the second channel, which is usually the center.
Property Descriptions¶
bool autoplay = false
If true
, audio plays when added to scene tree.