Method StartAudioStream
StartAudioStream(AudioStreamIdentifier, string, bool, TimeSpan, float, float)
Assign one of the available audio streams to play a specific file. This mechanism can be used
to replace regular music playback, and synchronize it between clients.
public void StartAudioStream(AudioStreamIdentifier streamIdentifier, string resRef, bool looping = false, TimeSpan fadeTime = default, float seekOffset = -1, float volume = 1)
Parameters
streamIdentifierAudioStreamIdentifierThe audio stream/channel to use for playing audio.
resRefstringThe audio resref to play.
loopingboolIf the audio should loop.
fadeTimeTimeSpanAn optional fade in time for the audio.
seekOffsetfloatThe offset to seek in the audio track. If this is greater than the length of the track, it will loop back to the start.
volumefloatThe volume to set on the audio stream.