Table of Contents

Class WaveFormatExtraData

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

A WaveFormat that keeps the format-specific extra bytes (cbSize) it was read with, without interpreting them. Reading a WAV fmt chunk produces one of these, and MarshalFromPtr(nint) falls back to it for an encoding NAudio has no dedicated subclass for.

public class WaveFormatExtraData : WaveFormat
Inheritance
WaveFormatExtraData
Inherited Members
Extension Methods

Constructors

WaveFormatExtraData(BinaryReader)

Reads this structure from a BinaryReader

public WaveFormatExtraData(BinaryReader reader)

Parameters

reader BinaryReader

Properties

ExtraData

The extra bytes that followed the WAVEFORMATEX header, exactly ExtraSize of them.

public byte[] ExtraData { get; }

Property Value

byte[]

Methods

Serialize(BinaryWriter)

Writes this structure to a BinaryWriter

public override void Serialize(BinaryWriter writer)

Parameters

writer BinaryWriter