Skip to content

PlatformAPI reference

Enum AudioSinkSchedule

Namespace: MicroEngine.Platform
Assembly: MicroEngine.Platform.dll
Guide: The platform host

Who calls a sink’s AudioRender.

C#
public enum AudioSinkSchedule

Fields

HostPump = 1

The host calls Pump once per frame on the main thread, which calls AudioRender (browsers: an AudioWorklet queue filled up to 100 ms ahead; tests: an offline sink rendering exactly one simulation step per pump).

SinkThread = 0

The sink calls AudioRender on a thread it owns, and Pump does nothing (SDL3 platforms: a feeder thread keeping 60 ms queued in SDL’s audio stream).