同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Manages audio adapters through a specific adapter driver program loaded based on the given audio adapter descriptor.
Since:
1.0
Version:
1.0
GetAllAdapters )(struct AudioManager *manager, struct AudioAdapterDescriptor **descs, int32_t *size) |
Obtains the list of all adapters supported by an audio driver. |
LoadAdapter )(struct AudioManager *manager, const struct AudioAdapterDescriptor *desc, struct AudioAdapter **adapter) |
|
UnloadAdapter )(struct AudioManager *manager, struct AudioAdapter *adapter) |
int32_t(* AudioManager::GetAllAdapters) (struct [AudioManager](AudioManager.md) *manager, struct [AudioAdapterDescriptor](AudioAdapterDescriptor.md) **descs, int32_t *size)
Description:
Obtains the list of all adapters supported by an audio driver.
Parameters:
manager | Indicates the pointer to the audio adapter manager to operate. |
descs | Indicates the double pointer to the audio adapter list. |
size | Indicates the pointer to the length of the list. |
Returns:
Returns 0 if the list is obtained successfully; returns a negative value otherwise.
See also:
int32_t(* AudioManager::LoadAdapter) (struct [AudioManager](AudioManager.md) *manager, const struct [AudioAdapterDescriptor](AudioAdapterDescriptor.md) *desc, struct [AudioAdapter](AudioAdapter.md) **adapter)
Description:
Loads the driver for an audio adapter.
For example, to load a USB driver, you may need to load a dynamic-link library (*.so) in specific implementation.
Parameters:
manager | Indicates the pointer to the audio adapter manager to operate. |
desc | Indicates the pointer to the descriptor of the audio adapter. |
adapter | Indicates the double pointer to the audio adapter. |
Returns:
Returns 0 if the driver is loaded successfully; returns a negative value otherwise.
See also:
void(* AudioManager::UnloadAdapter) (struct [AudioManager](AudioManager.md) *manager, struct [AudioAdapter](AudioAdapter.md) *adapter)
Description:
Unloads the driver of an audio adapter.
Parameters:
manager | Indicates the pointer to the audio adapter manager to operate. |
adapter | Indicates the pointer to the audio adapter whose driver will be unloaded. |
See also:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。