FloatOrMakeupGainOptions Struct
The (float or MakeupGainOptions) union of the makeup gain of a DynamicsCompressorOptions (https://webaudio.github.io/web-audio-api/#dom-dynamicscompressoroptions-makeupgain): a gain in dB, or the automatic makeup gain.
public readonly struct FloatOrMakeupGainOptions : IEquatable<FloatOrMakeupGainOptions>- Implements
Properties
| Name | Description |
|---|---|
| Decibels | Gets the makeup gain in dB when the value is a number, otherwise null. |
| Option | Gets the option when the value is a MakeupGainOptions, otherwise null. |
| Value | Gets the value: a MakeupGainOptions or a Single. |
Decibels
DynamicsCompressorNode.csGets the option when the value is a MakeupGainOptions, otherwise null.
public MakeupGainOptions? Option { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(FloatOrMakeupGainOptions) | 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. |
| FromMakeupGainOptions(MakeupGainOptions) | Creates a union value from an option. |
| FromSingle(float) | Creates a union value from a gain in dB. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(FloatOrMakeupGainOptions)
DynamicsCompressorNode.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(FloatOrMakeupGainOptions other)Parameters
otherFloatOrMakeupGainOptions- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
DynamicsCompressorNode.csFromMakeupGainOptions(MakeupGainOptions)
DynamicsCompressorNode.csCreates a union value from an option.
public static FloatOrMakeupGainOptions FromMakeupGainOptions(MakeupGainOptions value)FromSingle(float)
DynamicsCompressorNode.csCreates a union value from a gain in dB.
public static FloatOrMakeupGainOptions FromSingle(float value)GetHashCode()
DynamicsCompressorNode.csOperators
| Name | Description |
|---|---|
| operator ==(FloatOrMakeupGainOptions, FloatOrMakeupGainOptions) | Returns whether the two values are equal. |
| implicit operator FloatOrMakeupGainOptions(MakeupGainOptions) | Creates a union value from an option. |
| implicit operator FloatOrMakeupGainOptions(float) | Creates a union value from a gain in dB. |
| operator !=(FloatOrMakeupGainOptions, FloatOrMakeupGainOptions) | Returns whether the two values are different. |
operator ==(FloatOrMakeupGainOptions, FloatOrMakeupGainOptions)
DynamicsCompressorNode.csReturns whether the two values are equal.
public static bool operator ==(FloatOrMakeupGainOptions left, FloatOrMakeupGainOptions right)op_Implicit overloads
implicit operator FloatOrMakeupGainOptions(MakeupGainOptions)
DynamicsCompressorNode.csCreates a union value from an option.
public static implicit operator FloatOrMakeupGainOptions(MakeupGainOptions value)implicit operator FloatOrMakeupGainOptions(float)
DynamicsCompressorNode.csCreates a union value from a gain in dB.
public static implicit operator FloatOrMakeupGainOptions(float value)operator !=(FloatOrMakeupGainOptions, FloatOrMakeupGainOptions)
DynamicsCompressorNode.csReturns whether the two values are different.
public static bool operator !=(FloatOrMakeupGainOptions left, FloatOrMakeupGainOptions right)