UtilNAudioCutAudio Method

Cuts a segment of audio 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 CutAudio(
	WaveStream wave,
	TimeSpan startPosition,
	TimeSpan endPosition
)

Parameters

wave  WaveStream
The source WaveStream.
startPosition  TimeSpan
The start position where to start the cut.
endPosition  TimeSpan
The start position where to end the cut.

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