routeChangeFlow

Audio route changes as a cold Flow.

Collecting registers AudioSessionManager.observeRouteChanges. The core API keeps a single listener, so this replaces any previous listener (including another collector). Cancelling the collector calls AudioSessionManager.clearRouteChanges, which drops the Apple NSNotificationCenter observer and the Android routing listener. Android emits when Oboe reports a routing change on API 37 or later. JVM, JS, desktop, and macOS never emit from this path.

See also