Method SetAudioStreamVolume
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
streamIdentifierAudioStreamIdentifierThe stream identifier to receive the new volume level.
volumefloatThe new volume level (0.0-1.0)
fadeTimeTimeSpanThe time to fade in to the new volume level.