1 Star 0 Fork 5K

vv_justdoit / docs

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

AudioScene

Overview

Related Modules:

Audio

Description:

Provides scene-related APIs for audio rendering or capturing, including functions to select an audio scene and check whether the configuration of an audio scene is supported.

Since:

1.0

Version:

1.0

Summary

Data Fields

Variable Name

Description

CheckSceneCapability )(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported)

int32_t(* 

Checks whether the configuration of an audio scene is supported.

SelectScene )(AudioHandle handle, const struct AudioSceneDescriptor *scene)

int32_t(* 

Selects an audio scene.

Details

Field Documentation

CheckSceneCapability

int32_t(* AudioScene::CheckSceneCapability) ([AudioHandle](Audio.md#ga18675ddb073465fdeac33a897f675d79) handle, const struct [AudioSceneDescriptor](AudioSceneDescriptor.md) *scene, bool *supported)

Description:

Checks whether the configuration of an audio scene is supported.

Parameters:

Name

Description

handle Indicates the audio handle.
scene Indicates the pointer to the descriptor of the audio scene.
supported Indicates the pointer to the variable specifying whether the configuration is supported. Value true means that the configuration is supported, and false means the opposite.

Returns:

Returns 0 if the result is obtained; returns a negative value otherwise.

See also:

SelectScene

SelectScene

int32_t(* AudioScene::SelectScene) ([AudioHandle](Audio.md#ga18675ddb073465fdeac33a897f675d79) handle, const struct [AudioSceneDescriptor](AudioSceneDescriptor.md) *scene)

Description:

Selects an audio scene.

Parameters:

Name

Description

handle Indicates the audio handle.
scene Indicates the pointer to the descriptor of the audio scene to select.

Returns:

Returns 0 if the scene is selected successfully; returns a negative value otherwise.

See also:

CheckSceneCapability

1
https://gitee.com/vv-justdoit/docs.git
git@gitee.com:vv-justdoit/docs.git
vv-justdoit
docs
docs
master

搜索帮助