Table of Contents

Class BroadcastExtension

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

Parsed contents of a Broadcast Wave Format bext chunk. See https://tech.ebu.ch/docs/tech/tech3285.pdf for the full specification.

public sealed class BroadcastExtension
Inheritance
BroadcastExtension
Inherited Members

Properties

CodingHistory

Coding history (variable-length ASCII string at the end of the chunk).

public string CodingHistory { get; init; }

Property Value

string

Description

Description (up to 256 bytes in the file).

public string Description { get; init; }

Property Value

string

LoudnessRange

Loudness range in LU × 100. Null for version 1 chunks.

public short? LoudnessRange { get; init; }

Property Value

short?

LoudnessValue

Integrated loudness value in LUFS × 100. Null for version 1 chunks.

public short? LoudnessValue { get; init; }

Property Value

short?

MaxMomentaryLoudness

Maximum momentary loudness in LUFS × 100. Null for version 1 chunks.

public short? MaxMomentaryLoudness { get; init; }

Property Value

short?

MaxShortTermLoudness

Maximum short-term loudness in LUFS × 100. Null for version 1 chunks.

public short? MaxShortTermLoudness { get; init; }

Property Value

short?

MaxTruePeakLevel

Maximum true peak level in dBTP × 100. Null for version 1 chunks.

public short? MaxTruePeakLevel { get; init; }

Property Value

short?

OriginationDate

Origination date as stored in the file (10 ASCII characters — typically yyyy-mm-dd).

public string OriginationDate { get; init; }

Property Value

string

OriginationTime

Origination time as stored in the file (8 ASCII characters — typically hh:mm:ss).

public string OriginationTime { get; init; }

Property Value

string

Originator

Originator (up to 32 bytes in the file).

public string Originator { get; init; }

Property Value

string

OriginatorReference

Originator Reference (up to 32 bytes in the file).

public string OriginatorReference { get; init; }

Property Value

string

TimeReference

Time reference — sample count since midnight, little-endian 64-bit.

public long TimeReference { get; init; }

Property Value

long

UniqueMaterialIdentifier

SMPTE UMID (up to 64 bytes).

public string UniqueMaterialIdentifier { get; init; }

Property Value

string

Version

Version of the bext chunk (1 or 2). Version 2 includes the loudness fields.

public ushort Version { get; init; }

Property Value

ushort

Methods

FormatOriginationDate(DateTime)

Helper: formats a DateTime into the yyyy-MM-dd form expected by OriginationDate.

public static string FormatOriginationDate(DateTime date)

Parameters

date DateTime

Returns

string

FormatOriginationTime(DateTime)

Helper: formats a DateTime into the HH:mm:ss form expected by OriginationTime.

public static string FormatOriginationTime(DateTime time)

Parameters

time DateTime

Returns

string

ToChunkData()

Serialises this instance into the body of a bext RIFF chunk (no chunk id / size header). Use with AddChunk(string, byte[], ChunkPosition).

public byte[] ToChunkData()

Returns

byte[]