Version: 2019.1

VideoPlayer.GetAudioSampleRate

Switch to Manual
public uint GetAudioSampleRate (ushort trackIndex);

Parameters

trackIndexIndex of the audio track to query.

Returns

uint The sampling rate in Hertz.

Description

Gets the audio track sampling rate in Hertz.

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