In-game control of audio levels
You can use the Vivox SDK to allow in-game control for audio input and output levels.
The following list details examples of scenarios in which you would want to implement in-game control of audio levels:
- A user wants game sounds and voice output to have different volume levels.
- One user is playing music in the background, and another user wants to reduce the audio volume that is playing.
- A user wants to prioritize audio from one conversation over another, but still wants to hear the other conversation.
Volume settings for both capture devices and render devices adjust the apparent loudness of the device. You can set these values to a range between 0 to 100 on a logarithmic scale, with +0db (no change) at 50. Because settings use a logarithmic scale, the generally usable range is between 40 and 75, with 75 tending towards over modulation on a capture device and possible user discomfort when using a headset. Note that any increase in the volume above the default value can introduce some amount of distortion, although this is less noticeable at lower levels.
Note: We do not recommend that you allow users to increase their capture device volume above 75.
In the Vivox SDK, use vx_req_aux_set_mic_level_t
and vx_req_aux_set_speaker_level_t
to allow users to change the gain (volume) of their respective audio device.