Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.Constants.AudioScenario Enum Reference

## Static Public Member Functions
static int | getValue (AudioScenario type)

## Public Attributes
| DEFAULT =(Constants.AUDIO_SCENARIO_DEFAULT)
| GAME_STREAMING =(Constants.AUDIO_SCENARIO_GAME_STREAMING)
| CHATROOM =(Constants.AUDIO_SCENARIO_CHATROOM)

## Detailed Description

Sets the audio application scenarios.

## Member Data Documentation

## ◆ DEFAULT

io.agora.rtc2.Constants.AudioScenario.DEFAULT =(Constants.AUDIO_SCENARIO_DEFAULT)

0: (Recommended) The default audio scenario.

## ◆ GAME_STREAMING

io.agora.rtc2.Constants.AudioScenario.GAME_STREAMING =(Constants.AUDIO_SCENARIO_GAME_STREAMING)

3: (Recommended) The live gaming scenario, which needs to enable the gaming audio effects in the speaker mode in a live broadcast scenario. Choose this scenario to achieve high-fidelity music playback.

## ◆ CHATROOM

io.agora.rtc2.Constants.AudioScenario.CHATROOM =(Constants.AUDIO_SCENARIO_CHATROOM)

5: The chatroom scenario, which needs to keep recording when setClientRole to audience. Normally, app developer can also use mute api to achieve the same result, and we implement this 'non-orthogonal' behavior only to make API backward compatible.