Standalone Audio/MIDI settings and lifecycle¶
The public apps expose Audio/MIDI settings by default, alongside gain, bypass, Start and Stop. Embedded AU editors expose parameter controls and use host routing. The Apple app's route picker uses the system route; its settings offer preferred rates/buffers and currently available MIDI sources. Its status shows the negotiated rate, buffer and input channels. Engine reconstruction preserves complete parameter state and attempts MIDI reconnection by unique endpoint ID. The Android app lists available input/output devices, preferred rate/buffer and MIDI output ports (sources for the app), and shows actual negotiated values plus input shortages and native errors. A disconnection/error stops on the control poll; Start retries explicitly. Both fixtures stop on app backgrounding.
Android output callbacks chunk into at most 4096 frames. Input reads have a zero timeout; short capture prefixes retain their samples and missing frames become silence with a counter. Input/output must negotiate equal rates and channel counts. Independent device clock drift is not corrected in this adapter. The 1024-slot native MIDI queue rejects overflow, serializes producer ownership outside the audio callback and delivers accepted messages at the next chunk's frame zero. Android MIDI stream parsing preserves running status and interleaved realtime bytes; timestamps, SysEx and MIDI 2.0 device input are not mapped here.