VideoPlayer.SetDirectAudioVolume(number trackIndex, number volume)
Set the direct-output audio volume for the specified track.
Parameters:
Name | Type | Description |
---|---|---|
trackIndex | number | Track index for which the volume is set. |
volume | number | New volume, between 0 and 1. |
Usage
---@type VideoPlayer
local videoplayer;
---@type number
local trackIndex;
---@type number
local volume;
videoplayer.SetDirectAudioVolume(trackIndex, volume)