Skip to main content

VideoClip.GetAudioSampleRate(number audioTrackIdx)

Get the audio track sampling rate in Hertz.

Parameters:

NameTypeDescription
audioTrackIdxnumberIndex of the audio queried audio track.

Returns:

typeDescription
numberThe sampling rate in Hertz.

Usage

---@type VideoClip
local videoclip;

---@type number
local audioTrackIdx;


local val0 = videoclip.GetAudioSampleRate(audioTrackIdx)