# AudioVolume ## **Overview** **Related Modules:** [Audio](Audio.md) **Description:** Provides volume-related APIs for audio rendering or capturing, including functions to set the mute operation, volume, and gain. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
SetMute )(AudioHandle handle, bool mute) |
|
GetMute )(AudioHandle handle, bool *mute) |
|
SetVolume )(AudioHandle handle, float volume) |
|
GetVolume )(AudioHandle handle, float *volume) |
|
GetGainThreshold )(AudioHandle handle, float *min, float *max) |
|
GetGain )(AudioHandle handle, float *gain) |
|
SetGain )(AudioHandle handle, float gain) |
handle | Indicates the audio handle. |
gain | Indicates the pointer to the audio gain. |
handle | Indicates the audio handle. |
min | Indicates the pointer to the minimum value of the range. |
max | Indicates the pointer to the maximum value of the range. |
handle | Indicates the audio handle. |
mute | Indicates the pointer to the mute operation set for the audio. Value true means that the audio is muted, and false means the opposite. |
handle | Indicates the audio handle. |
volume | Indicates the pointer to the volume to obtain. The value ranges from 0.0 to 1.0. |
handle | Indicates the audio handle. |
gain | Indicates the audio gain to set. |
handle | Indicates the audio handle. |
mute | Specifies whether to mute the audio. Value true means to mute the audio, and false means the opposite. |
handle | Indicates the audio handle. |
volume | Indicates the volume to set. The value ranges from 0.0 to 1.0. |