From ded9dc1e825f1b050c95afa6be786723420e1a2b Mon Sep 17 00:00:00 2001 From: Eoin O'Neill Date: Thu, 10 Feb 2022 21:01:04 -0800 Subject: Add missing binding to AudioStream class This allows for the extension of AudioStream where you can call `instance_plackback` on child AudioStream instances within gdscript, much like the implementation of some child classes in C++. See `AudioStreamRandomPitch` for an example of how this can be used. --- doc/classes/AudioStream.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/classes/AudioStream.xml b/doc/classes/AudioStream.xml index 1e6f700c7c..6343da6eed 100644 --- a/doc/classes/AudioStream.xml +++ b/doc/classes/AudioStream.xml @@ -39,6 +39,12 @@ Returns the length of the audio stream in seconds. + + + + Returns an AudioStreamPlayback. Useful for when you want to extend `_instance_playback` but call `instance_playback` from an internally held AudioStream subresource. An example of this can be found in the source files for `AudioStreamRandomPitch::instance_playback`. + + -- cgit v1.2.3