W3cubDocs

/Godot 4.2

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 ( int value )
  • int get_polyphony ( )

Maximum amount of simultaneous streams that can be played.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_audiostreampolyphonic.html