# SetTargetAudioSource(ushort, AudioSource)

> Sets the AudioSource that will receive audio samples for the specified track if this audio target is selected with _audioOutputMode.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Video](/engine/6000.7/script-reference/unityengine/video.md)
* **Assembly:** UnityEngine.VideoModule

```csharp
public void SetTargetAudioSource(ushort trackIndex, AudioSource source)
```

### Parameters

**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)): Index of the audio track to associate with the specified [AudioSource](/engine/6000.7/script-reference/unityengine/audiosource.md).**** (\[AudioSource]\(/engine/6000.7/script-reference/unityengine/audiosource)): [AudioSource](/engine/6000.7/script-reference/unityengine/audiosource.md) to associate with the audio track.
