We seem to be having the same issue as well, whenever the window goes into an inactive state before foreground, the audio session gets interrupted.
if you have only one window and you close it from the system button, it goes into inactive (causing the session to be interrupted) and then foreground.
Closing it programmatically (dismiss window Action) is handled differently as then when observing the scene phases, the window goes directly into foreground.
Also if you open window A, and then Window B and then close window B and then A. Interrupts the Audio.
In this case, Window B goes into background, but window A goes to Inactive-> Background.
However closing window A while B is open and then closing window B does not interrupt it. both windows go into Background state directly.
which makes me think that it is the inactive state that is causing this interruption.
Topic:
Spatial Computing
SubTopic:
General
Tags: