Version

menu_open

Replacing Music with a Player's Own Music

The Xbox One™, PlayStation® 4, iOS, and Android platforms allow their game players to replace the game music with their own. For all platforms, you must enable the Mute for Background Music option on all the busses you want to mute when the user's music starts. Multiple busses can be selected and this is not restricted to music busses.

To assign a bus to a platform's background music option:

  1. Load an Audio Bus into the Property Editor.

  2. Select the Mute for Background Music option.

    This bus will now be muted when users start their music through the console's music player.

Platform-Specific details

The behavior of Mute for Background Music is slightly different on each platform. Also, additional programming needs to be done at the initialization of the sound engine.

  • Android: The Mute/Unmute action will occur only when the user switches from the music player app to the game. This means that there is no "Unmute" if the user music finishes by itself.

  • iOS: If the AudioSession flag "MixOther" is set in the sound engine initialization settings, the Mute/Unmute action will occur only when the user switches from the music player app to the game. This means that there is no "Unmute" if the user music finishes by itself. On iOS 8 and later, if the AVAudioSessionCategoryAmbient category is used, muting and unmuting of the game music will occur for all application audio interruptions.

  • Xbox One and PS4: The manufacturers added a DVR function that allows the gamer to record games and publish them. This raised a few legal issues regarding the copyrighted music that might be part of the game audio, or user-replaceable music. While the game studio have the rights to use the music in their game, the end-user doesn't have the rights to distribute it in any form. Thus the TCRs require that background music should not be recorded. The cost-effective solution (CPU wise) for this problem is to mix the music separately from the rest of the game. This is done using the Secondary Output feature.

    The only thing needed in the Authoring tool is to route the music objects to the Master Secondary Bus or any other bus under it. If your game is also playing sounds on the game controllers, your project also uses this bus hierarchy for the controller sounds. Do not worry about the music being mixed with the controller sounds or vice-versa, it won't be. There is an additional step for final routing decisions made through the Listener/Game Object pairings. This is setup by the game programmer. So just as each player doesn't have the same sounds mixed in each of their controllers, the music will be sent to a different mixing structure internally. See Understanding Secondary Outputs for more information.

    [Note] Important Note for PS4

    You must add the AkOutput_BGM secondary output in code (using AddSecondaryOutput ) if you want to use the Mute for Background Music feature.


Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise