Skip to main content

VideoPlayer.GetDirectAudioVolume(number trackIndex)

Return the direct-output volume for specified track.

Parameters:

NameTypeDescription
trackIndexnumberTrack index for which the volume is queried.

Returns:

typeDescription
numberVolume, between 0 and 1.

Usage

---@type VideoPlayer
local videoplayer;

---@type number
local trackIndex;


local val0 = videoplayer.GetDirectAudioVolume(trackIndex)