Skip to content

sud.setInnerAudioOption ​

JS
 sud.setInnerAudioOption(Object object)

Sets the playback options for InnerAudioContext. Once set, it takes effect globally for the current game.

Parameters

  • Object object: Input parameters; see the table below for the specific properties.

object properties:

PropertyTypeDefaultRequiredDescription
mixWithOtherbooleantrueNoWhether to mix with other audio. When set to true, the audio of other apps will not be terminated
obeyMuteSwitchbooleantrueNo(iOS only) Whether to obey the mute switch. When set to false, sound can play even in mute mode
speakerOnbooleantrueNotrue means play through the speaker, false means play through the earpiece
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for when the API call completes