Class MediaFoundationResampler
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
sourceProviderIWaveProviderSource provider, must be PCM
outputFormatWaveFormatOutput 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
sourceProviderIWaveProviderSource provider
outputSampleRateintOutput 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; }