Component:MultiAudioClipPlayer: Difference between revisions

From Resonite Wiki
imported>Mysticporo
Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=MultiAudioClipPlayerComponent.png |Name=Multi Audio Clip Player }} <!--T:2--> == Fields ==..."
 
Fix page to have content
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=MultiAudioClipPlayerComponent.png
|Image=MultiAudioClipPlayerComponent.png
|Name=Multi Audio Clip Player
|Name=Multi Audio Clip Player
}}
}}
TODO: instead of being written by [[User:989onan|me]] with 2 brain cells of math this should be rewritten with actual math terms.
The MultiAudioClipPlayer is a component able to make a group of audios play at the exact same time with a timeline. How the math is determined is made by taking each track and checking their play length in seconds. Next a math equation is done to find how much to repeat each Audio Clip by, so they end at the same time. Then it makes this component's playback length where all the audio clips would end. This could be used as a way of doing said math equation.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|playback|SyncPlayback|  
|playback|{{RootFieldType|SyncPlayback}}|TypeAdv0=true|the position of the multi audio clip player
|Tracks|SyncList`1|TypeString1=SyncList<Track>|
|Tracks|{{RootFieldType|SyncList`1|[[#Track|Track]]}}|TypeAdv1=true|the different tracks this Multi Audio Clip is playing.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Add a group of tracks to the tracks list to make them part of the player. The player can be referenced by [[Type:IPlayable]] capable nodes such as [[:Category:ProtoFlux:Media| Media ProtoFlux Nodes]] and Components that take such. This component can also be put into an [[Component:AudioOutput|Audio Output Component]] to be heard by the user.


<!--T:4-->
<!--T:4-->
Line 24: Line 30:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Multi Audio Clip Player]]
[[Category:Components{{#translation:}}|Multi Audio Clip Player]]
[[Category:Components With Nested Types{{#translation:}}|Multi Audio Clip Player]]
[[Category:Components:Audio{{#translation:}}|Multi Audio Clip Player]]
[[Category:Components:Audio{{#translation:}}|Multi Audio Clip Player]]

Latest revision as of 21:00, 7 March 2024

Component image 
Multi Audio Clip Player component as seen in the Scene Inspector

TODO: instead of being written by me with 2 brain cells of math this should be rewritten with actual math terms.

The MultiAudioClipPlayer is a component able to make a group of audios play at the exact same time with a timeline. How the math is determined is made by taking each track and checking their play length in seconds. Next a math equation is done to find how much to repeat each Audio Clip by, so they end at the same time. Then it makes this component's playback length where all the audio clips would end. This could be used as a way of doing said math equation.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
playback direct SyncPlayback the position of the multi audio clip player
Tracks list of Track the different tracks this Multi Audio Clip is playing.

Usage

Add a group of tracks to the tracks list to make them part of the player. The player can be referenced by Type:IPlayable capable nodes such as Media ProtoFlux Nodes and Components that take such. This component can also be put into an Audio Output Component to be heard by the user.


Examples

Related Components