Table of Contents

Class InfoMetadata

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

Parsed contents of a LIST chunk with type INFO — the standard RIFF metadata container (artist, title, copyright, etc.). Use the named properties for common tags, or this[string] / Contains(string) to access arbitrary four-character INFO subchunk ids. Also writable: construct, Set(string, string) entries, then serialise via WriteInfoMetadata(WaveFileWriter, InfoMetadata, ChunkPosition).

public sealed class InfoMetadata : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Inheritance
InfoMetadata
Implements
Inherited Members

Constructors

InfoMetadata()

Creates an empty metadata container.

public InfoMetadata()

Properties

Artist

Artist (IART).

public string Artist { get; }

Property Value

string

Comments

Comments (ICMT).

public string Comments { get; }

Property Value

string

Copyright (ICOP).

public string Copyright { get; }

Property Value

string

Count

Number of INFO entries.

public int Count { get; }

Property Value

int

CreationDate

Creation date (ICRD).

public string CreationDate { get; }

Property Value

string

Engineer

Engineer (IENG).

public string Engineer { get; }

Property Value

string

Genre

Genre (IGNR).

public string Genre { get; }

Property Value

string

this[string]

Gets the value for the given four-character INFO subchunk id (e.g. INAM), or null if not present. Case-insensitive.

public string this[string id] { get; }

Parameters

id string

Property Value

string

Keywords

Keywords (IKEY).

public string Keywords { get; }

Property Value

string

Product

Album / Product (IPRD).

public string Product { get; }

Property Value

string

Software

Software that created this file (ISFT).

public string Software { get; }

Property Value

string

Source

Source (ISRC).

public string Source { get; }

Property Value

string

Subject

Subject (ISBJ).

public string Subject { get; }

Property Value

string

Technician

Technician (ITCH).

public string Technician { get; }

Property Value

string

Title

Title / Name (INAM).

public string Title { get; }

Property Value

string

TrackNumber

Track number (ITRK).

public string TrackNumber { get; }

Property Value

string

Methods

Contains(string)

Returns true if the given four-character INFO subchunk id is present. Case-insensitive.

public bool Contains(string id)

Parameters

id string

Returns

bool

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<KeyValuePair<string, string>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, string>>

An enumerator that can be used to iterate through the collection.

Set(string, string)

Sets the value for the given four-character INFO subchunk id. Passing null or empty clears the entry. Id comparison is case-insensitive but stored uppercase.

public void Set(string id, string value)

Parameters

id string
value string