Table of Contents

Struct SinkWriterStatistics

Namespace
NAudio.MediaFoundation
Assembly
NAudio.Wasapi.dll

Contains statistics about the performance of the sink writer.

public struct SinkWriterStatistics
Inherited Members

Remarks

Windows SDK name: MF_SINK_WRITER_STATISTICS (mfreadwrite.h). See https://learn.microsoft.com/windows/win32/api/mfreadwrite/ns-mfreadwrite-mf_sink_writer_statistics

Fields

AverageSampleRateEncoded

The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the encoder.

public int AverageSampleRateEncoded

Field Value

int

Remarks

dwAverageSampleRateEncoded

AverageSampleRateProcessed

The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the media sink.

public int AverageSampleRateProcessed

Field Value

int

Remarks

dwAverageSampleRateProcessed

AverageSampleRateReceived

The average rate, in media samples per 100-nanoseconds, at which the application sent samples to the sink writer.

public int AverageSampleRateReceived

Field Value

int

Remarks

dwAverageSampleRateReceived

ByteCountProcessed

The total amount of data, in bytes, that has been sent to the media sink.

public long ByteCountProcessed

Field Value

long

Remarks

qwByteCountProcessed

ByteCountQueued

The amount of data, in bytes, currently waiting to be processed.

public int ByteCountQueued

Field Value

int

Remarks

dwByteCountQueued

LastSinkSampleRequest

The system time of the most recent sample request from the media sink.

public long LastSinkSampleRequest

Field Value

long

Remarks

llLastSinkSampleRequest

LastStreamTickReceived

The time stamp of the most recent stream tick.

public long LastStreamTickReceived

Field Value

long

Remarks

llLastStreamTickReceived

LastTimestampEncoded

The time stamp of the most recent sample to be encoded.

public long LastTimestampEncoded

Field Value

long

Remarks

llLastTimestampEncoded

LastTimestampProcessed

The time stamp of the most recent sample given to the media sink.

public long LastTimestampProcessed

Field Value

long

Remarks

llLastTimestampProcessed

LastTimestampReceived

The time stamp of the most recent sample given to the sink writer.

public long LastTimestampReceived

Field Value

long

Remarks

llLastTimestampReceived

OutstandingSinkSampleRequests

The number of pending sample requests.

public int OutstandingSinkSampleRequests

Field Value

int

Remarks

dwNumOutstandingSinkSampleRequests

SamplesEncoded

The number of samples encoded.

public long SamplesEncoded

Field Value

long

Remarks

qwNumSamplesEncoded

SamplesProcessed

The number of samples given to the media sink.

public long SamplesProcessed

Field Value

long

Remarks

qwNumSamplesProcessed

SamplesReceived

The number of samples received.

public long SamplesReceived

Field Value

long

Remarks

qwNumSamplesReceived

Size

The size of the structure, in bytes.

public int Size

Field Value

int

Remarks

cb

StreamTicksReceived

The number of stream ticks received.

public long StreamTicksReceived

Field Value

long

Remarks

qwNumStreamTicksReceived