Class reference

AudioStreamPlaybackInteractive

Inherits AudioStreamPlayback

Playback component of AudioStreamInteractive.

Description

Playback component of AudioStreamInteractive. Contains functions to change the currently played clip.

Methods

int get_current_clip_index() const

Return the index of the currently playing clip. You can use this to get the name of the currently playing clip with AudioStreamInteractive.get_clip_name(). Example: Get the currently playing clip name from inside an AudioStreamPlayer node.

				var playing_clip_name = stream.get_clip_name(get_stream_playback().get_current_clip_index())
				

void switch_to_clip(int clip_index)

Switch to a clip (by index).

void switch_to_clip_by_name(StringName clip_name)

Switch to a clip (by name).

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.