MOMENT Studio
← Back

Aligning Lock Screen Controls and Effect Chain State

2025.09.22Technical Log#playback#sound-engine#ios-shell

Resolved state mismatches between remote control and active playback, and clarified the attach/detach flow of the audio effect chain.

Playback does not exist only within the app's visible screen. Lock screen controls, headphone buttons, and state restoration after app switching must all reflect the same playback truth. When the state held by the remote control diverges from the actual playback state, inconsistencies arise — for example, the UI indicating a paused state while audio continues to play.

To address this, the initialization state of the remote control is now explicitly defined, and the update path triggered by user input has been consolidated to a single source. This is a structural change that centralizes ownership of playback state.

On the audio output side, a compressor and limiter have been added at the end of the effect chain to control output peaks. The activation and deactivation order for effects in inst-only playback has been redefined to ensure appropriate reverb is applied in that context. The primary change is an explicit teardown flow that prevents residual effects from persisting when the playback context changes.