GetAudioSampleProvider(VideoPlayer, ushort)
Return the AudioSampleProvider for the specified track, used to receive audio samples during playback.
読み終わるまでの所要時間 1 分最終更新 3時間前
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Video
- Assembly: UnityEngine.VideoModule
public static AudioSampleProvider GetAudioSampleProvider(this VideoPlayer vp, ushort trackIndex)
Parameters
The "this" pointer for the extension method.
The audio track index for which the sample provider is queried.
Returns
Type | Description |
|---|---|
| AudioSampleProvider | The sample provider for the specified track. |
Remarks
The sample provider can only be obtained when VideoPlayer.audioOutputMode is set to VideoAudioOutputMode.APIOnly.