AudioContextRenderSizeHint Struct
The (AudioContextRenderSizeCategory or unsigned long) union of the render quantum size hint of a context (https://webaudio.github.io/web-audio-api/#dom-audiocontextoptions-rendersizehint).
public readonly struct AudioContextRenderSizeHint : IEquatable<AudioContextRenderSizeHint>- Implements
Properties
| Name | Description |
|---|---|
| Category | Gets the category when the value is a category, otherwise null. |
| Size | Gets the number of sample frames when the value is a number, otherwise null. |
| Value | Gets the value: an AudioContextRenderSizeCategory or a UInt32. |
Category
AudioContextRenderSizeHint.csGets the category when the value is a category, otherwise null.
public AudioContextRenderSizeCategory? Category { get; }Property value
Gets the value: an AudioContextRenderSizeCategory or a UInt32.
public object Value { get; }Property value
Methods
| Name | Description |
|---|---|
| Equals(AudioContextRenderSizeHint) | 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. |
| FromAudioContextRenderSizeCategory(AudioContextRenderSizeCategory) | Creates a union value from a category. |
| FromUInt32(uint) | Creates a union value from a number of sample frames. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(AudioContextRenderSizeHint)
AudioContextRenderSizeHint.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(AudioContextRenderSizeHint other)Parameters
otherAudioContextRenderSizeHint- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
AudioContextRenderSizeHint.csFromAudioContextRenderSizeCategory(AudioContextRenderSizeCategory)
AudioContextRenderSizeHint.csCreates a union value from a category.
public static AudioContextRenderSizeHint FromAudioContextRenderSizeCategory(AudioContextRenderSizeCategory value)FromUInt32(uint)
AudioContextRenderSizeHint.csCreates a union value from a number of sample frames.
public static AudioContextRenderSizeHint FromUInt32(uint value)GetHashCode()
AudioContextRenderSizeHint.csOperators
| Name | Description |
|---|---|
| operator ==(AudioContextRenderSizeHint, AudioContextRenderSizeHint) | Returns whether the two values are equal. |
| implicit operator AudioContextRenderSizeHint(AudioContextRenderSizeCategory) | Creates a union value from a category. |
| implicit operator AudioContextRenderSizeHint(uint) | Creates a union value from a number of sample frames. |
| operator !=(AudioContextRenderSizeHint, AudioContextRenderSizeHint) | Returns whether the two values are different. |
operator ==(AudioContextRenderSizeHint, AudioContextRenderSizeHint)
AudioContextRenderSizeHint.csReturns whether the two values are equal.
public static bool operator ==(AudioContextRenderSizeHint left, AudioContextRenderSizeHint right)op_Implicit overloads
implicit operator AudioContextRenderSizeHint(AudioContextRenderSizeCategory)
AudioContextRenderSizeHint.csCreates a union value from a category.
public static implicit operator AudioContextRenderSizeHint(AudioContextRenderSizeCategory value)implicit operator AudioContextRenderSizeHint(uint)
AudioContextRenderSizeHint.csCreates a union value from a number of sample frames.
public static implicit operator AudioContextRenderSizeHint(uint value)operator !=(AudioContextRenderSizeHint, AudioContextRenderSizeHint)
AudioContextRenderSizeHint.csReturns whether the two values are different.
public static bool operator !=(AudioContextRenderSizeHint left, AudioContextRenderSizeHint right)