AudioAPI reference
Class AudioEngineSettings
Namespace: MicroEngine.Audio
Assembly: MicroEngine.Audio.dll
Guide: Audio
Settings of an AudioEngine.
public sealed record AudioEngineSettings : IEquatable<AudioEngineSettings>Inheritance
Implements
IEquatable<AudioEngineSettings>
Constructors
AudioEngineSettings()
public AudioEngineSettings()Properties
DelayFrames
Frames between a step and the sounds it starts; raised to the sink’s LatencyFrames, so every sound starts at an exact frame whatever block sizes the sink renders. Null for the sink’s latency.
public int? DelayFrames { get; init; }Property Value
int?
MaxVoices
Sounds that can play at once (32 by default); the voice policy decides beyond that.
public int MaxVoices { get; init; }Property Value
StreamAheadSeconds
Output frames of streamed music decoded ahead (by Pump); half a second by default.
public double StreamAheadSeconds { get; init; }Property Value
UpdateRate
Simulation steps per second: the engine stamps each sound with the output frame of its step.
public int UpdateRate { get; init; }Property Value
Methods
<Clone>$()
public AudioEngineSettings <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(AudioEngineSettings?)
public bool Equals(AudioEngineSettings? other)Parameters
other AudioEngineSettings?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(AudioEngineSettings?, AudioEngineSettings?)
public static bool operator ==(AudioEngineSettings? left, AudioEngineSettings? right)Parameters
left AudioEngineSettings?
right AudioEngineSettings?
Returns
operator !=(AudioEngineSettings?, AudioEngineSettings?)
public static bool operator !=(AudioEngineSettings? left, AudioEngineSettings? right)Parameters
left AudioEngineSettings?
right AudioEngineSettings?