Class AudioSourceExtension
Provides extension methods for the AudioSource class to facilitate integration with AudioStreamTrack.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public static class AudioSourceExtension
Methods
SetTrack(AudioSource, AudioStreamTrack)
Sets the AudioStreamTrack for the AudioSource.
Declaration
public static void SetTrack(this AudioSource source, AudioStreamTrack track)
Parameters
Type | Name | Description |
---|---|---|
AudioSource | source | The AudioSource to set the track for. |
AudioStreamTrack | track | The AudioStreamTrack to set. |