Table of Contents

Method SetAudioStreamVolume

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SetAudioStreamVolume(AudioStreamIdentifier, float, TimeSpan)

Changes the volume of the audio stream with the specified identifier.

public void SetAudioStreamVolume(AudioStreamIdentifier streamIdentifier, float volume = 1, TimeSpan fadeTime = default)

Parameters

streamIdentifier AudioStreamIdentifier

The stream identifier to receive the new volume level.

volume float

The new volume level (0.0-1.0)

fadeTime TimeSpan

The time to fade in to the new volume level.