Audio playback doesn't stop when application quit (should it though?)

According to @lduboeuf, if stop() isn't called on the (client) audio player on quit, audio playback will keep playing 1.

Now, the problem is if e.g. Music app is playing, and then it gets OOM-killed 2, then audio playback shouldn't stop. So the question is what is the right way to approach this? We might have to distinguish between QCoreApplication::quit(), SIGTERM and SIGKILL, the later 2 is likely hard to distinguish. Does Lomiri have to involve?

I thought this is simple, but turns out this is hard...

  1. lomiri-system-settings!487 (comment 2555939228)

  2. at the moment it's still broken. See ubports/development/core/hybris-support/lxc-android-config#45