Table of Contents

Class MediaFoundationResampler

Namespace
NAudio.Wave
Assembly
NAudio.Wasapi.dll

The Media Foundation Resampler Transform

public class MediaFoundationResampler : MediaFoundationTransform, IWaveProvider, IDisposable
Inheritance
MediaFoundationResampler
Implements
Inherited Members
Extension Methods

Constructors

MediaFoundationResampler(IWaveProvider, WaveFormat)

Creates the Media Foundation Resampler, allowing modifying of sample rate, bit depth and channel count

public MediaFoundationResampler(IWaveProvider sourceProvider, WaveFormat outputFormat)

Parameters

sourceProvider IWaveProvider

Source provider, must be PCM

outputFormat WaveFormat

Output format, must also be PCM

MediaFoundationResampler(IWaveProvider, int)

Creates a resampler with a specified target output sample rate

public MediaFoundationResampler(IWaveProvider sourceProvider, int outputSampleRate)

Parameters

sourceProvider IWaveProvider

Source provider

outputSampleRate int

Output sample rate

Properties

ResamplerQuality

Gets or sets the Resampler quality. n.b. set the quality before starting to resample. 1 is lowest quality (linear interpolation) and 60 is best quality

public int ResamplerQuality { get; set; }

Property Value

int