From 0e3cab41ebac855fbf13b4c409e42d2661c5842b Mon Sep 17 00:00:00 2001 From: Ellen Poe Date: Fri, 27 Aug 2021 21:51:03 -0700 Subject: Add polyphony to Audio Stream Player nodes --- doc/classes/AudioStream.xml | 11 +++++++++++ doc/classes/AudioStreamPlayer.xml | 3 +++ doc/classes/AudioStreamPlayer2D.xml | 3 +++ doc/classes/AudioStreamPlayer3D.xml | 3 +++ 4 files changed, 20 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/AudioStream.xml b/doc/classes/AudioStream.xml index a954a06117..32e51603ee 100644 --- a/doc/classes/AudioStream.xml +++ b/doc/classes/AudioStream.xml @@ -28,12 +28,23 @@ + + + + + Returns the length of the audio stream in seconds. + + + + Returns true if this audio stream only supports monophonic playback, or false if the audio stream supports polyphony. + + diff --git a/doc/classes/AudioStreamPlayer.xml b/doc/classes/AudioStreamPlayer.xml index a6c437f875..b692ae858e 100644 --- a/doc/classes/AudioStreamPlayer.xml +++ b/doc/classes/AudioStreamPlayer.xml @@ -56,6 +56,9 @@ Bus on which this audio is playing. + + The maximum number of sounds this node can play at the same time. Playing additional sounds after this value is reached will cut off the oldest sounds. + If the audio configuration has more than two speakers, this sets the target channels. See [enum MixTarget] constants. diff --git a/doc/classes/AudioStreamPlayer2D.xml b/doc/classes/AudioStreamPlayer2D.xml index c40c223091..e36a428499 100644 --- a/doc/classes/AudioStreamPlayer2D.xml +++ b/doc/classes/AudioStreamPlayer2D.xml @@ -61,6 +61,9 @@ Maximum distance from which audio is still hearable. + + The maximum number of sounds this node can play at the same time. Playing additional sounds after this value is reached will cut off the oldest sounds. + The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate. diff --git a/doc/classes/AudioStreamPlayer3D.xml b/doc/classes/AudioStreamPlayer3D.xml index 584f03399c..fa2fa5a8e3 100644 --- a/doc/classes/AudioStreamPlayer3D.xml +++ b/doc/classes/AudioStreamPlayer3D.xml @@ -83,6 +83,9 @@ Sets the distance from which the [member out_of_range_mode] takes effect. Has no effect if set to 0. + + The maximum number of sounds this node can play at the same time. Playing additional sounds after this value is reached will cut off the oldest sounds. + Decides if audio should pause when source is outside of [member max_distance] range. -- cgit v1.2.3