VideoPlayer.GetDirectAudioVolume(number trackIndex)
Return the direct-output volume for specified track.
Parameters:
Name | Type | Description |
---|---|---|
trackIndex | number | Track index for which the volume is queried. |
Returns:
type | Description |
---|---|
number | Volume, between 0 and 1. |
Usage
---@type VideoPlayer
local videoplayer;
---@type number
local trackIndex;
local val0 = videoplayer.GetDirectAudioVolume(trackIndex)