Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAudioChannelCount(ushort)

The number of audio channels in the specified audio track.
Read time 1 minuteLast updated 10 days ago

Definition

public ushort GetAudioChannelCount(ushort trackIndex)

Parameters

trackIndex

Index for the audio track being queried.

Returns

Type

Description

ushortNumber of audio channels.

Remarks

For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare.