Implement AudioStreamGeneratorPlayback::get_frames_buffered() and AudioStreamGeneratorPlayback::get_frames_buffer_length() methods in order to streamline using AudioStreamGenerator as a queue for procedurally/externally generated audio frames.
I would like to point out that AudioEffectCapture has equivalent methods to the ones added in this PR (AudioEffectCapture::get_frames_available() and AudioEffectCapture::get_buffer_length_frames()).
Implement
AudioStreamGeneratorPlayback::get_frames_buffered()
andAudioStreamGeneratorPlayback::get_frames_buffer_length()
methods in order to streamline usingAudioStreamGenerator
as a queue for procedurally/externally generated audio frames.Implements godotengine/godot-proposals#11180.
I would like to point out that
AudioEffectCapture
has equivalent methods to the ones added in this PR (AudioEffectCapture::get_frames_available()
andAudioEffectCapture::get_buffer_length_frames()
).