demo · v136
State Machine Visualiser
An AudioContext can be in one of five states — suspended, running, closed, and (new in v136) interrupted. Drive every legal transition from the buttons below, watch the highlighted node move, and read the timestamped statechange log.
Note: the
interrupted state is only reachable when the OS or browser pulls audio focus (phone call, screen lock, another exclusive-audio app). On desktop you may only see suspended → running → closed. The diagram still lights up the states that are reachable.
suspended
running
interrupted
closed
legal transitions
suspended→runningviaresume()running→suspendedviasuspend()or user pauserunning→interruptedwhen the OS pulls audio focusinterrupted→runningwhen focus returns (auto or explicitresume())- any state →
closedviaclose()