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:
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| mixWithOther | boolean | true | No | Whether to mix with other audio. When set to true, the audio of other apps will not be terminated |
| obeyMuteSwitch | boolean | true | No | (iOS only) Whether to obey the mute switch. When set to false, sound can play even in mute mode |
| speakerOn | boolean | true | No | true means play through the speaker, false means play through the earpiece |
| success | function | No | Callback function for a successful API call | |
| fail | function | No | Callback function for a failed API call | |
| complete | function | No | Callback function for when the API call completes |
