# AudioControl
- [Overview](#section1915690746165630)
- [Summary](#section471008123165630)
- [Data Fields](#pub-attribs)
- [Details](#section1829845227165630)
- [Field](#section1736957898165630)
- [Flush](#acebc54c385b91ddc52b6b7849ddf12d0)
- [Pause](#a16a26deffa17b9f143f602763a260908)
- [Resume](#ac59c3e9a5ff9041989871f67253a1e8d)
- [Start](#a80ddae13819bb1eb348ad4b57597e930)
- [Stop](#a62e385e391ba1efed35021ee67ab9449)
## **Overview**
**Related Modules:**
[Audio](audio.md)
**Description:**
Provides control-related APIs for audio rendering or capturing, including functions to start, stop, pause, and resume audio rendering or capturing, and flush data in the audio buffer.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Fields
## **Details**
## **Field **
## Flush
```
int32_t(* AudioControl::Flush) ([AudioHandle](audio.md#ga18675ddb073465fdeac33a897f675d79) handle)
```
**Description:**
Flushes data in the audio buffer.
**Parameters:**
Name
|
Description
|
| handle |
Indicates the audio handle. |
**Returns:**
Returns **0** if the flush is successful; returns a negative value otherwise.
## Pause
```
int32_t(* AudioControl::Pause) ([AudioHandle](audio.md#ga18675ddb073465fdeac33a897f675d79) handle)
```
**Description:**
Pauses audio rendering or capturing.
**Parameters:**
Name
|
Description
|
| handle |
Indicates the audio handle. |
**Returns:**
Returns **0** if the rendering or capturing is successfully paused; returns a negative value otherwise.
**See also:**
[Resume](audiocontrol.md#ac59c3e9a5ff9041989871f67253a1e8d)
## Resume
```
int32_t(* AudioControl::Resume) ([AudioHandle](audio.md#ga18675ddb073465fdeac33a897f675d79) handle)
```
**Description:**
Resumes audio rendering or capturing.
**Parameters:**
Name
|
Description
|
| handle |
Indicates the audio handle. |
**Returns:**
Returns **0** if the rendering or capturing is successfully resumed; returns a negative value otherwise.
**See also:**
[Pause](audiocontrol.md#a16a26deffa17b9f143f602763a260908)
## Start
```
int32_t(* AudioControl::Start) ([AudioHandle](audio.md#ga18675ddb073465fdeac33a897f675d79) handle)
```
**Description:**
Starts audio rendering or capturing.
**Parameters:**
Name
|
Description
|
| handle |
Indicates the audio handle. |
**Returns:**
Returns **0** if the rendering or capturing is successfully started; returns a negative value otherwise.
**See also:**
[Stop](audiocontrol.md#a62e385e391ba1efed35021ee67ab9449)
## Stop
```
int32_t(* AudioControl::Stop) ([AudioHandle](audio.md#ga18675ddb073465fdeac33a897f675d79) handle)
```
**Description:**
Stops audio rendering or capturing.
**Parameters:**
Name
|
Description
|
| handle |
Indicates the audio handle. |
**Returns:**
Returns **0** if the rendering or capturing is successfully stopped; returns a negative value otherwise.
**See also:**
[Start](audiocontrol.md#a80ddae13819bb1eb348ad4b57597e930)