# AudioVolume - [Overview](#section1226262637165630) - [Summary](#section1494919611165630) - [Data Fields](#pub-attribs) - [Details](#section816896005165630) - [Field](#section916202426165630) - [GetGain](#a5ff7f9e5b763d20822a1fadecc5a8db7) - [GetGainThreshold](#aa42ff18fa2b7e6780acf120ea49054ed) - [GetMute](#a75fcb5bda7e0ca9b823187f6056ad1d4) - [GetVolume](#a649524ce280ecdb62ddacb78e1a63439) - [SetGain](#ab667c5f8754d0b10121451a57abbe429) - [SetMute](#a79c127fa37eb2dbf8dc5fe9f0ed4421e) - [SetVolume](#aebf67caf924cba5f3be9d0f395390908) ## **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. |