0.2.0-dev Download ZIP
54 lines ·2.1 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="AudioStreamSynchronized" inherits="AudioStream" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
| 3 | <brief_description> |
| 4 | Stream that can be fitted with sub-streams, which will be played in-sync. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This 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. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Audio streams">$DOCS_URL/tutorials/audio/audio_streams.html</link> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="get_sync_stream" qualifiers="const"> |
| 14 | <return type="AudioStream" /> |
| 15 | <param index="0" name="stream_index" type="int" /> |
| 16 | <description> |
| 17 | Get one of the synchronized streams, by index. |
| 18 | </description> |
| 19 | </method> |
| 20 | <method name="get_sync_stream_volume" qualifiers="const"> |
| 21 | <return type="float" /> |
| 22 | <param index="0" name="stream_index" type="int" /> |
| 23 | <description> |
| 24 | Get the volume of one of the synchronized streams, by index. |
| 25 | </description> |
| 26 | </method> |
| 27 | <method name="set_sync_stream"> |
| 28 | <return type="void" /> |
| 29 | <param index="0" name="stream_index" type="int" /> |
| 30 | <param index="1" name="audio_stream" type="AudioStream" /> |
| 31 | <description> |
| 32 | Set one of the synchronized streams, by index. |
| 33 | </description> |
| 34 | </method> |
| 35 | <method name="set_sync_stream_volume"> |
| 36 | <return type="void" /> |
| 37 | <param index="0" name="stream_index" type="int" /> |
| 38 | <param index="1" name="volume_db" type="float" /> |
| 39 | <description> |
| 40 | Set the volume of one of the synchronized streams, by index. |
| 41 | </description> |
| 42 | </method> |
| 43 | </methods> |
| 44 | <members> |
| 45 | <member name="stream_count" type="int" setter="set_stream_count" getter="get_stream_count" default="0"> |
| 46 | Set the total amount of streams that will be played back synchronized. |
| 47 | </member> |
| 48 | </members> |
| 49 | <constants> |
| 50 | <constant name="MAX_STREAMS" value="32"> |
| 51 | Maximum amount of streams that can be synchronized. |
| 52 | </constant> |
| 53 | </constants> |
| 54 | </class> |