This is simply a question about AOSP/GrapheneOSses ability to do such a thing.
Apps can output sounds through some channels afaik, and I want to play media on App 1 but disable all sounds in App 2.
Currently there is no such option.
Actually it would be a possibility for me to unpack the APK and repack it again. Just never did that.