UtilNAudioInsertSilence Method

Inserts a silence starting 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 InsertSilence(
	WaveStream wave,
	TimeSpan startPosition,
	TimeSpan duration
)

Parameters

wave  WaveStream
The source WaveStream.
startPosition  TimeSpan
The start position where to insert the silence.
duration  TimeSpan
The duration of the silence.

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