Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AudioStreamPlaybackInteractive

Hereda: AudioStreamPlayback < RefCounted < Object

Componente de reproducción de AudioStreamInteractive.

Descripción

Componente de reproducción de AudioStreamInteractive. Contiene funciones para cambiar el clip que se está reproduciendo actualmente.

Métodos

int

get_current_clip_index() const

void

switch_to_clip(clip_index: int)

void

switch_to_clip_by_name(clip_name: StringName)


Descripciones de Métodos

int get_current_clip_index() const 🔗

Devuelve el índice del clip que se está reproduciendo actualmente. Puedes usarlo para obtener el nombre del clip en reproducción con AudioStreamInteractive.get_clip_name().

Ejemplo: Obtener el nombre del clip que se está reproduciendo desde un nodo AudioStreamPlayer.

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

void switch_to_clip(clip_index: int) 🔗

Cambiar a un clip (por índice).


void switch_to_clip_by_name(clip_name: StringName) 🔗

Cambiar a un clip (por nombre).