1 Star 0 Fork 4.9K

平凡 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AudioControl.md 9.96 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

AudioControl

Overview

Related Modules:

Audio

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

Variable Name

Description

Start )(AudioHandle handle)

int32_t(* 

Starts audio rendering or capturing.

Stop )(AudioHandle handle)

int32_t(* 

Stops audio rendering or capturing.

Pause )(AudioHandle handle)

int32_t(* 

Pauses audio rendering or capturing.

Resume )(AudioHandle handle)

int32_t(* 

Resumes audio rendering or capturing.

Flush )(AudioHandle handle)

int32_t(* 

Flushes data in the audio buffer.

Details

Field Documentation

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

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

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

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

1
https://gitee.com/pingfan_vs_hs/docs.git
git@gitee.com:pingfan_vs_hs/docs.git
pingfan_vs_hs
docs
docs
master

搜索帮助