diff --git a/zh-cn/device-dev/reference/hdi-apis/_audio_adapter.md b/zh-cn/device-dev/reference/hdi-apis/_audio_adapter.md index d594bd12b64f466d8e63bc682d3e07ad8b42025f..c4ddc25428e9e04cacde47a42b131bec1d9e60cf 100644 --- a/zh-cn/device-dev/reference/hdi-apis/_audio_adapter.md +++ b/zh-cn/device-dev/reference/hdi-apis/_audio_adapter.md @@ -15,16 +15,16 @@ | Public 属性 | 描述 | | -------- | -------- | -| ( [InitAllPorts](#initallports) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref241992660083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter) | 初始化一个音频适配器所有的端口驱动 [更多...](#initallports) | -| ( [CreateRender](#createrender) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref1249519733083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, const struct [AudioDeviceDescriptor](_audio_device_descriptor.md) \*desc, const struct [AudioSampleAttributes](_audio_sample_attributes.md) \*attrs, struct [AudioRender](_audio_render.md) \*\*render) | 创建一个音频播放(render)接口的对象 [更多...](#createrender) | -| ( [DestroyRender](#destroyrender) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref194522153083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, struct [AudioRender](_audio_render.md) \*render) | 销毁一个音频播放(render)接口的对象 [更多...](#destroyrender) | -| ( [CreateCapture](#createcapture) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref933286157083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, const struct [AudioDeviceDescriptor](_audio_device_descriptor.md) \*desc, const struct [AudioSampleAttributes](_audio_sample_attributes.md) \*attrs, struct [AudioCapture](_audio_capture.md) \*\*capture) | 创建一个音频录音(capture)接口的对象 [更多...](#createcapture) | -| ( [DestroyCapture](#destroycapture) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref145884804083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, struct [AudioCapture](_audio_capture.md) \*capture) | 销毁一个音频录音(capture)接口的对象 [更多...](#destroycapture) | -| ( [GetPortCapability](#getportcapability) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref974312331083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, struct [AudioPort](_audio_port.md) \*port, struct [AudioPortCapability](_audio_port_capability.md) \*capability) | 获取一个音频适配器的端口驱动的能力集 [更多...](#getportcapability) | -| ( [SetPassthroughMode](#setpassthroughmode) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref1432990851083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, struct [AudioPort](_audio_port.md) \*port, enum [AudioPortPassthroughMode](_audio.md#audioportpassthroughmode) mode) | 设置音频端口驱动的数据透传模式 [更多...](#setpassthroughmode) | -| ( [GetPassthroughMode](#getpassthroughmode) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref883432727083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, struct [AudioPort](_audio_port.md) \*port, enum [AudioPortPassthroughMode](_audio.md#audioportpassthroughmode) \*mode) | 获取音频端口驱动的数据透传模式 [更多...](#getpassthroughmode) | -| ( [UpdateAudioRoute](#updateaudioroute) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref362795572083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, const struct [AudioRoute](_audio_route.md) \*route, int32_t \*routeHandle) | 更新一个或多个发送端和接受端之间的路由 [更多...](#updateaudioroute) | -| ( [ReleaseAudioRoute](#releaseaudioroute) )(struct [ERROR:Invalid link:zh-cn_topic_0000001357342201.xml#xref410918381083931,link:zh-cn_topic_0000001357342201.xml](zh-cn_topic_0000001357342201.xml) \*adapter, int32_t routeHandle) | 释放一个音频路由. [更多...](#releaseaudioroute) | +| ( [InitAllPorts](#initallports) )(struct AudioAdapter \*adapter) | 初始化一个音频适配器所有的端口驱动 [更多...](#initallports) | +| ( [CreateRender](#createrender) )(struct AudioAdapter \*adapter, const struct [AudioDeviceDescriptor](_audio_device_descriptor.md) \*desc, const struct [AudioSampleAttributes](_audio_sample_attributes.md) \*attrs, struct [AudioRender](_audio_render.md) \*\*render) | 创建一个音频播放(render)接口的对象 [更多...](#createrender) | +| ( [DestroyRender](#destroyrender) )(struct AudioAdapter \*adapter, struct [AudioRender](_audio_render.md) \*render) | 销毁一个音频播放(render)接口的对象 [更多...](#destroyrender) | +| ( [CreateCapture](#createcapture) )(struct AudioAdapter \*adapter, const struct [AudioDeviceDescriptor](_audio_device_descriptor.md) \*desc, const struct [AudioSampleAttributes](_audio_sample_attributes.md) \*attrs, struct [AudioCapture](_audio_capture.md) \*\*capture) | 创建一个音频录音(capture)接口的对象 [更多...](#createcapture) | +| ( [DestroyCapture](#destroycapture) )(struct AudioAdapter \*adapter, struct [AudioCapture](_audio_capture.md) \*capture) | 销毁一个音频录音(capture)接口的对象 [更多...](#destroycapture) | +| ( [GetPortCapability](#getportcapability) )(struct AudioAdapter \*adapter, struct [AudioPort](_audio_port.md) \*port, struct [AudioPortCapability](_audio_port_capability.md) \*capability) | 获取一个音频适配器的端口驱动的能力集 [更多...](#getportcapability) | +| ( [SetPassthroughMode](#setpassthroughmode) )(struct AudioAdapter \*adapter, struct [AudioPort](_audio_port.md) \*port, enum [AudioPortPassthroughMode](_audio.md#audioportpassthroughmode) mode) | 设置音频端口驱动的数据透传模式 [更多...](#setpassthroughmode) | +| ( [GetPassthroughMode](#getpassthroughmode) )(struct AudioAdapter \*adapter, struct [AudioPort](_audio_port.md) \*port, enum [AudioPortPassthroughMode](_audio.md#audioportpassthroughmode) \*mode) | 获取音频端口驱动的数据透传模式 [更多...](#getpassthroughmode) | +| ( [UpdateAudioRoute](#updateaudioroute) )(struct AudioAdapter \*adapter, const struct [AudioRoute](_audio_route.md) \*route, int32_t \*routeHandle) | 更新一个或多个发送端和接受端之间的路由 [更多...](#updateaudioroute) | +| ( [ReleaseAudioRoute](#releaseaudioroute) )(struct  \*adapter, int32_t routeHandle) | 释放一个音频路由. [更多...](#releaseaudioroute) | ## **详细描述**