UtilNAudioInsertFadeIn Method

Inserts a fade-in 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 InsertFadeIn(
	WaveStream wave,
	TimeSpan startPosition,
	TimeSpan duration,
	bool skipAudioBeforeFadeIn
)

Parameters

wave  WaveStream
The source WaveStream.
startPosition  TimeSpan
The position where to insert the fade-in effect.
duration  TimeSpan
The duration of the fade-in effect.
skipAudioBeforeFadeIn  Boolean
If , any leading audio before the fade-in 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