(One intermediate revision by the same user not shown)
Line 7:
Line 7:
|Name=Static Audio Clip
|Name=Static Audio Clip
}}
}}
The '''StaticAudioClip''' component is what stores pre recorded audio data for components that play audio like [[Component:AudioClipPlayer]]. This component is auto generated when a sound file is imported into the game as part of an audio clip object.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|URL|Uri|
|URL|Uri| The audio clip data location to load.
|LoadMode|AudioLoadMode|
|LoadMode|AudioLoadMode|
|SampleRateMode|SampleRateMode|
|SampleRateMode|SampleRateMode|
Line 18:
Line 19:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|Normalize()|[[Type:Func`1|Func`1]]|
|Normalize()|[[Type:Func`1|Func`1]]| Makes the volume during the audio clip consistent.
|FadeIn()|[[Type:Func`2|Func`2]]<[[Type:Float|Float]]: duration>| makes the audios volume increase from 0 to original over <code>duration</code> seconds at the start of the clip.
|FadeOut()|[[Type:Func`2|Func`2]]<[[Type:Float|Float]]: duration>| makes the audios volume decrease from original volume to 0 over <code>duration</seconds> seconds at the end of the clip.
|MakeFadeLoop()|[[Type:Func`2|Func`2]]<[[Type:Float|Float]]: duration>| blends the start and end of the clips by <code>duration</code> seconds to make the audio seem seamless.
|ConvertToWAV()|[[Type:Func`1|Func`1]]|
|ConvertToWAV()|[[Type:Func`1|Func`1]]| converts the audio clip type to Windows audio vodec.
|ConvertToVorbis()|[[Type:Func`1|Func`1]]|
|ConvertToVorbis()|[[Type:Func`1|Func`1]]| converts the audio clip type to Vorbis.
|ConvertToFLAC()|[[Type:Func`1|Func`1]]|
|ConvertToFLAC()|[[Type:Func`1|Func`1]]| Converts the audio clip type to FLAC.
The StaticAudioClip component is what stores pre recorded audio data for components that play audio like Component:AudioClipPlayer. This component is auto generated when a sound file is imported into the game as part of an audio clip object.