From 239b2e4bbc205bf8e0b3ddb0f4568ab4198cb83e Mon Sep 17 00:00:00 2001 From: Fireflash Date: Sat, 10 Sep 2022 21:39:13 +1000 Subject: [PATCH] Update AudioStreamGeneratorPlayback.xml Fixed incorrect method description for `get_frames_available`. According to [The AudioStreamGenerator source](https://github.com/godotengine/godot/blob/master/servers/audio/effects/audio_stream_generator.cpp#L132), the `get_frames_available` method should return the space remaining in the sample buffer. (cherry picked from commit 7823ca13676648ae1f35b33ea18c9d699395f283) --- doc/classes/AudioStreamGeneratorPlayback.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/AudioStreamGeneratorPlayback.xml b/doc/classes/AudioStreamGeneratorPlayback.xml index 21c0598519b..b433bb747e4 100644 --- a/doc/classes/AudioStreamGeneratorPlayback.xml +++ b/doc/classes/AudioStreamGeneratorPlayback.xml @@ -27,7 +27,7 @@ - Returns the number of audio data frames left to play. If this returned number reaches [code]0[/code], the audio will stop playing until frames are added again. Therefore, make sure your script can always generate and push new audio frames fast enough to avoid audio cracking. + Returns the number of frames that can be pushed to the audio sample data buffer without overflowing it. If the result is [code]0[/code], the buffer is full.