Table of Contents

Struct DmoMediaType

Namespace
NAudio.Dmo
Assembly
NAudio.Dmo.dll
public struct DmoMediaType
Inherited Members

Remarks

Field types match the COM ABI exactly so the struct can be pinned and passed to GeneratedComInterfaceAttribute methods that take an nint without going through the legacy runtime marshaller. Booleans are int (matching Win32 BOOL) for the same reason — they are projected as bool via properties.

Properties

FixedSizeSamples

Fixed size samples

public bool FixedSizeSamples { get; }

Property Value

bool

FormatType

Format type

public Guid FormatType { get; }

Property Value

Guid

FormatTypeName

Format type name

public string FormatTypeName { get; }

Property Value

string

MajorType

Major type

public Guid MajorType { get; }

Property Value

Guid

MajorTypeName

Major type name

public string MajorTypeName { get; }

Property Value

string

SampleSize

Sample size

public int SampleSize { get; }

Property Value

int

SubType

Subtype

public Guid SubType { get; }

Property Value

Guid

SubTypeName

Subtype name

public string SubTypeName { get; }

Property Value

string

Methods

GetWaveFormat()

Gets the structure as a Wave format (if it is one)

public WaveFormat GetWaveFormat()

Returns

WaveFormat

SetWaveFormat(WaveFormat)

Sets this object up to point to a wave format

public void SetWaveFormat(WaveFormat waveFormat)

Parameters

waveFormat WaveFormat

Wave format structure