PlatformAPI reference
Struct AudioFormat
Namespace: MicroEngine.Platform
Assembly: MicroEngine.Platform.dll
Guide: The platform host
The PCM format a sink plays: interleaved 32-bit float samples, Channels per frame, at SampleRate frames per second.
public readonly struct AudioFormat : IEquatable<AudioFormat>Implements
Constructors
AudioFormat(int, int)
The PCM format a sink plays: interleaved 32-bit float samples, Channels per frame, at SampleRate frames per second.
public AudioFormat(int SampleRate, int Channels)Parameters
SampleRate int
Frames per second.
Channels int
Samples per frame (2 for stereo).
Properties
Channels
Samples per frame (2 for stereo).
public int Channels { get; init; }Property Value
SampleRate
Frames per second.
public int SampleRate { get; init; }Property Value
Methods
Deconstruct(out int, out int)
public void Deconstruct(out int SampleRate, out int Channels)Parameters
SampleRate int
Channels int
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(AudioFormat)
public bool Equals(AudioFormat other)Parameters
other AudioFormat
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(AudioFormat, AudioFormat)
public static bool operator ==(AudioFormat left, AudioFormat right)Parameters
left AudioFormat
right AudioFormat
Returns
operator !=(AudioFormat, AudioFormat)
public static bool operator !=(AudioFormat left, AudioFormat right)Parameters
left AudioFormat
right AudioFormat