A processor connects to the Sanas cloud asynchronously. You must wait for kReady before sending audio. If you call ProcessSamples before the processor is ready, the output buffer is filled with silence.
States
Option A — State callback (recommended)
Pass a ProcessorStateCallback when creating the processor. It fires on a background thread — keep it fast and thread-safe.
Option B — Polling
Useful if you prefer not to use callbacks.
Do not call WaitForStateChange from your audio thread. Use a dedicated monitor thread or the callback approach instead.