Path: blob/master/modules/interactive_music/doc_classes/AudioStreamPlaybackInteractive.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AudioStreamPlaybackInteractive" inherits="AudioStreamPlayback" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Playback component of [AudioStreamInteractive].4</brief_description>5<description>6Playback component of [AudioStreamInteractive]. Contains functions to change the currently played clip.7</description>8<tutorials>9</tutorials>10<methods>11<method name="get_current_clip_index" qualifiers="const">12<return type="int" />13<description>14Return the index of the currently playing clip. You can use this to get the name of the currently playing clip with [method AudioStreamInteractive.get_clip_name].15[b]Example:[/b] Get the currently playing clip name from inside an [AudioStreamPlayer] node.16[codeblocks]17[gdscript]18var playing_clip_name = stream.get_clip_name(get_stream_playback().get_current_clip_index())19[/gdscript]20[/codeblocks]21</description>22</method>23<method name="switch_to_clip">24<return type="void" />25<param index="0" name="clip_index" type="int" />26<description>27Switch to a clip (by index).28</description>29</method>30<method name="switch_to_clip_by_name">31<return type="void" />32<param index="0" name="clip_name" type="StringName" />33<description>34Switch to a clip (by name).35</description>36</method>37</methods>38</class>394041