AudioStreamGeneratorPlayback

Inherits: AudioStreamPlaybackResampled < AudioStreamPlayback < Reference < Object AudioStreamGenerator.

Description

AudioStreamGenerator to play back the generated audio in real-time.

Tutorials


  • 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.