기술 자료

Unity Engine

Download Unity

Unity Engine

GetAudioSampleProvider(VideoPlayer, ushort)

Return the AudioSampleProvider for the specified track, used to receive audio samples during playback.
읽는 시간 1분최근 업데이트: 3시간 전

Definition

public static AudioSampleProvider GetAudioSampleProvider(this VideoPlayer vp, ushort trackIndex)

Parameters

The "this" pointer for the extension method.

trackIndex

The audio track index for which the sample provider is queried.

Returns

Type

Description

AudioSampleProviderThe sample provider for the specified track.

Remarks

The sample provider can only be obtained when VideoPlayer.audioOutputMode is set to VideoAudioOutputMode.APIOnly.