Methods (5) Properties (4)
Namespace: CSCore.DSP

Syntax

public class DmoResampler : WaveAggregatorBase

Base Type

Summary

Resampler based on the DmoResampler. Supported since Windows XP.

Uses

Methods

DmoResampler(IWaveSource source, WaveFormat outputFormat)

Initializes a new instance of the DmoResampler class.

public void DmoResampler(IWaveSource source, WaveFormat outputFormat)

Parameters

source

IWaveSource

IWaveSource which has to get resampled.

outputFormat

WaveFormat

Waveformat, which specifies the new format. Note, that by far not all formats are supported.

DmoResampler(IWaveSource source, Int32 destinationSampleRate)

Initializes a new instance of the DmoResampler class.

public void DmoResampler(IWaveSource source, Int32 destinationSampleRate)

Parameters

source

IWaveSource

IWaveSource which has to get resampled.

destinationSampleRate

Int32

The new output samplerate specified in Hz.

Dispose(Boolean disposing)

Disposes the DmoResampler.

protected void Dispose(Boolean disposing)

Parameters

disposing

Boolean

True to release both managed and unmanaged resources; false to release only unmanaged resources.

DisposeResamplerOnly()

Disposes the allocated resources of the resampler but does not dispose the underlying source.

public void DisposeResamplerOnly()

Read(Byte[] buffer, Int32 offset, Int32 count)

Reads a resampled sequence of bytes from the DmoResampler and advances the position within the stream by the number of bytes read.

public Int32 Read(Byte[] buffer, Int32 offset, Int32 count)

Parameters

buffer

Byte[]

An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.

offset

Int32

The zero-based byte offset in the buffer at which to begin storing the data read from the current stream.

count

Int32

The maximum number of bytes to read from the current source.

Returns

The total number of bytes read into the buffer.

Properties

Length

Gets the length of the source.

public override Int64 Length { get; }

Position

Gets or sets the position of the source.

public override Int64 Position { get; set; }

Quality

Specifies the quality of the output. The valid range is from 1 to 60.

public Int32 Quality { get; set; }

WaveFormat

Gets the new output format.

public override WaveFormat WaveFormat { get; }

Class Diagram

public classDmoResamplerDisposeDisposeResamplerOnlyReadDmoResamplerDmoResamplerLength { get; }Position { get; set; }Quality { get; set; }WaveFormat { get; }public abstract classWaveAggregatorBaseDisposeDisposeFinalizeReadWaveAggregatorBaseWaveAggregatorBaseBaseSource { get; set; }CanSeek { get; }DisposeBaseSource { get; set; }Length { get; }Position { get; set; }WaveFormat { get; }public structDmoOutputDataBufferBufferStatusTimeLengthTimestampDisposeReadReadResetDmoOutputDataBufferDmoOutputDataBufferLength { get; }public interfaceIMediaBufferGetBufferAndLengthGetMaxLengthSetLengthpublic classMediaBufferDisposeFinalizeGetBufferAndLengthGetMaxLengthReadReadSetLengthWriteMediaBufferLength { get; set; }MaxLength { get; }public classMediaObjectAllocateStreamingResourcesAllocateStreamingResourcesNativeClearInputTypeClearOutputTypeDiscontinuityDiscontinuityNativeFlushFlushNativeFreeStreamingResourcesFreeStreamingResourcesNativeFromComObjectGetInputCurrentTypeGetInputCurrentTypeGetInputMaxLatencyGetInputMaxLatencyNativeGetInputSizeInfoGetInputSizeInfoNativeGetInputStatusGetInputStatusNativeGetInputStreamInfoGetInputStreamInfoNativeGetInputTypeGetInputTypeNativeGetOutputCurrentTypeGetOutputCurrentTypeGetOutputSizeInfoGetOutputSizeInfoNativeGetOutputStreamInfoGetOutputStreamInfoNativeGetOutputTypeGetOutputTypeNativeGetStreamCountGetStreamCountNativeIsReadyForInputLockLockLockNativeProcessInputProcessInputProcessInputProcessInputNativeProcessOutputProcessOutputProcessOutputNativeSetInputMaxLatencySetInputMaxLatencyNativeSetInputTypeSetInputTypeSetInputTypeNativeSetOutputTypeSetOutputTypeSetOutputTypeNativeSupportsInputFormatSupportsInputFormatSupportsOutputFormatSupportsOutputFormatMediaObjectInputStreamCount { get; }OutputStreamCount { get; }public abstract classWaveAggregatorBaseDisposeDisposeFinalizeReadWaveAggregatorBaseWaveAggregatorBaseBaseSource { get; set; }CanSeek { get; }DisposeBaseSource { get; set; }Length { get; }Position { get; set; }WaveFormat { get; }

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom