|playback|SyncPlayback| The playback object that includes data about playtime, duration, position, and playspeed of the audio.
|playback|{{RootFieldType|SyncPlayback}}|TypeAdv0=true| The playback object that includes data about playtime, duration, position, and playspeed of the audio.
|Clip|IAssetProvider`1|TypeString1=IAssetProvider<AudioClip>| The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]].
|Clip|{{RootFieldType|AssetRef`1|[[Type:AudioClip|AudioClip]]}}|TypeAdv1=true| The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]].
}}
== Sync Delegates ==
{{Table ComponentTriggers
|Play()|[[Type:Action|Action]]| When called, starts playback for this component.
|Stop()|[[Type:Action|Action]]| When called, stops playback for this component.
|Pause()|[[Type:Action|Action]]| When called, pauses playback for this component.
|Resume()|[[Type:Action|Action]]| When called, resumes playback for this component.
}}
}}
Line 23:
Line 31:
<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Component:PlaybackSynchronizer]] for synchronizing playables
Add an audio clip to the Clip field by holding a default audio clip player and clicking. then put the Audio Clip Player into an Audio Output and hit play to hear the audio.
Examples
This is usually used in in-game audio players like radios, vehicles, and default audio clip players to play audio constantly. It can be used to play audio and be able to scrub the audio without worrying about working with one shots which play all the way through.