App to control background sound output
Sorry but that isn't possible on an iPad.  Each application/game has the option/ability to allow the background music to continue or to stop it and use its own audio.

You would have to ask the developer of each application to add an option to allow the background music to continue instead of interrupting.  Good luck with that. ;)