Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

AudioStreamPolyphonic

Inherits: AudioStream < Resource < RefCounted < Object

AudioStream that lets the user play custom streams at any time from code, simultaneously using a single player.

Description

AudioStream that lets the user play custom streams at any time from code, simultaneously using a single player.

Playback control is done via the AudioStreamPlaybackPolyphonic instance set inside the player, which can be obtained via AudioStreamPlayer.get_stream_playback, AudioStreamPlayer2D.get_stream_playback or AudioStreamPlayer3D.get_stream_playback methods. Obtaining the playback instance is only valid after the stream property is set as an AudioStreamPolyphonic in those players.

Properties

int

polyphony

32


Property Descriptions

int polyphony = 32 🔗

  • void set_polyphony(value: int)

  • int get_polyphony()

Maximum amount of simultaneous streams that can be played.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.