UtilNAudioInsertFadeOut Method

Inserts a fade-out effect at a specific position in the source WaveStream.

Definition

Namespace: DevCase.ThirdParty.NAudio
Assembly: DevCase.net48.ThirdParty.NAudio (in DevCase.net48.ThirdParty.NAudio.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IWaveProvider InsertFadeOut(
	WaveStream wave,
	TimeSpan startPosition,
	TimeSpan duration,
	bool skipAudioAfterFadeOut
)

Parameters

wave  WaveStream
The source WaveStream.
startPosition  TimeSpan
The position where to insert the fade-out effect.
duration  TimeSpan
The duration of the fade-out effect.
skipAudioAfterFadeOut  Boolean
If , any leading audio after the fade-out effect position will be skipped (cutted) from the source WaveStream.

Return Value

IWaveProvider
The resulting IWaveProvider.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

NAudio

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also