class-description NEWS COMMUNITY STORE LABS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE LABS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedAudioStreamPlaybackAudioStreamPlaybackResampled AudioStreamGeneratorPlayback
Plays back audio generated using AudioStreamGenerator.

This class is meant to be used with AudioStreamGenerator to play back the generated audio in real-time.

bool can_push_buffer<>( int amount=, amount:int=, ):bool

Returns true if a buffer of the size amount can be pushed to the audio sample data buffer without overflowing it, false otherwise.

void clear_buffer<>():void

Clears the audio sample data buffer.

int get_frames_available<>():int

Returns the number of frames that can be pushed to the audio sample data buffer without overflowing it. If the result is 0, the buffer is full.

int get_skips<>():int

Returns the number of times the playback skipped due to a buffer underrun in the audio sample data. This value is reset at the start of the playback.

bool push_buffer<>( PackedVector2Array frames=, frames:PackedVector2Array=, ):bool

Pushes several audio data frames to the buffer. This is usually more efficient than push_frame in C# and compiled languages via GDExtension, but push_buffer may be less efficient in GDScript.

bool push_frame<>( Vector2 frame=, frame:Vector2=, ):bool

Pushes a single audio data frame to the buffer. This is usually less efficient than push_buffer in C# and compiled languages via GDExtension, but push_frame may be more efficient in GDScript.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...