AudioStreamPlaybackInteractive
Inherits: AudioStreamPlayback < RefCounted < Object
Description
Section titled “Description”Playback component of AudioStreamInteractive.
Playback component of AudioStreamInteractive. Contains functions to change the currently played clip.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| int | get_current_clip_index() const |
| void | switch_to_clip(clip_index: int) |
| void | switch_to_clip_by_name(clip_name: StringName) |
Method descriptions
Section titled “Method descriptions”get_current_clip_index
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.
switch_to_clip
void switch_to_clip(clip_index: int)
Switch to a clip (by index).
switch_to_clip_by_name
void switch_to_clip_by_name(clip_name: StringName)
Switch to a clip (by name).
