Version: 2017.1

VideoPlayer.GetTargetAudioSource

Switch to Manual
public AudioSource GetTargetAudioSource (ushort trackIndex);

Parameters

trackIndex Index of the audio track for which the AudioSource is wanted.

Returns

AudioSource The source associated with the audio track.

Description

Gets the AudioSource that will receive audio samples for the specified track if VideoPlayer.audioOutputMode is set to VideoAudioOutputMode.AudioSource.