ReplayGainInfo Struct

Represents ReplayGain loudness normalization values.

public readonly struct ReplayGainInfo : IEquatable<ReplayGainInfo>
Implements

Properties

NameDescription
AlbumGainGets the album gain in dB.
AlbumPeakGets the album peak value.
TrackGainGets the track gain in dB.
TrackPeakGets the track peak value.

Gets the album gain in dB.

public double? AlbumGain { get; init; }

Property value

double?

Gets the album peak value.

public double? AlbumPeak { get; init; }

Property value

double?

Gets the track gain in dB.

public double? TrackGain { get; init; }

Property value

double?

Gets the track peak value.

public double? TrackPeak { get; init; }

Property value

double?

Methods

NameDescription
Equals(ReplayGainInfo)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Indicates whether this instance and a specified object are equal.
GetHashCode()Returns the hash code for this instance.

Equals overloads

Equals(ReplayGainInfo)

ReplayGainInfo.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ReplayGainInfo other)
Parameters
other ReplayGainInfo
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

ReplayGainInfo.cs

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current instance.
Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

ReplayGainInfo.cs

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int A 32-bit signed integer that is the hash code for this instance.

Operators

NameDescription
operator ==(ReplayGainInfo, ReplayGainInfo)Equality operator.
operator !=(ReplayGainInfo, ReplayGainInfo)Inequality operator.

operator ==(ReplayGainInfo, ReplayGainInfo)

ReplayGainInfo.cs

Equality operator.

public static bool operator ==(ReplayGainInfo left, ReplayGainInfo right)

Parameters

left ReplayGainInfo
right ReplayGainInfo

Returns

bool

operator !=(ReplayGainInfo, ReplayGainInfo)

ReplayGainInfo.cs

Inequality operator.

public static bool operator !=(ReplayGainInfo left, ReplayGainInfo right)

Parameters

left ReplayGainInfo
right ReplayGainInfo

Returns

bool