AudioStreamGeneratorPlayback
Inherits: AudioStreamPlaybackResampled < AudioStreamPlayback < Reference < Object AudioStreamGenerator.
Description
AudioStreamGenerator to play back the generated audio in real-time.
Tutorials
- Audio Generator Demo
- https://godotengine.org/article/godot-32-will-get-new-audio-features
Methods
Method Descriptions
- bool can_push_buffer ( int amount ) const
trueif a buffer of the sizeamountcan be pushed to the audio sample data buffer without overflowing it,falseotherwise.
- clear_buffer ( ) Clears the audio sample data buffer.
- int get_frames_available ( ) const
0, 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.
- int get_skips ( ) const
- bool push_buffer ( PoolVector2Array frames ) push_frame in C# and compiled languages via GDNative, but push_buffer may be less efficient in GDScript.
- bool push_frame ( Vector2 frame ) push_buffer in C# and compiled languages via GDNative, but push_frame may be more efficient in GDScript.
