Path: blob/master/modules/interactive_music/doc_classes/AudioStreamSynchronized.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AudioStreamSynchronized" inherits="AudioStream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Stream that can be fitted with sub-streams, which will be played in-sync.4</brief_description>5<description>6This is a stream that can be fitted with sub-streams, which will be played in-sync. The streams begin at exactly the same time when play is pressed, and will end when the last of them ends. If one of the sub-streams loops, then playback will continue.7</description>8<tutorials>9</tutorials>10<methods>11<method name="get_sync_stream" qualifiers="const">12<return type="AudioStream" />13<param index="0" name="stream_index" type="int" />14<description>15Get one of the synchronized streams, by index.16</description>17</method>18<method name="get_sync_stream_volume" qualifiers="const">19<return type="float" />20<param index="0" name="stream_index" type="int" />21<description>22Get the volume of one of the synchronized streams, by index.23</description>24</method>25<method name="set_sync_stream">26<return type="void" />27<param index="0" name="stream_index" type="int" />28<param index="1" name="audio_stream" type="AudioStream" />29<description>30Set one of the synchronized streams, by index.31</description>32</method>33<method name="set_sync_stream_volume">34<return type="void" />35<param index="0" name="stream_index" type="int" />36<param index="1" name="volume_db" type="float" />37<description>38Set the volume of one of the synchronized streams, by index.39</description>40</method>41</methods>42<members>43<member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0">44Set the total amount of streams that will be played back synchronized.45</member>46</members>47<constants>48<constant name="MAX_STREAMS" value="32">49Maximum amount of streams that can be synchronized.50</constant>51</constants>52</class>535455