同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Provides capabilities for audio capturing, including controlling the capturing, setting audio attributes, scenes, and volume, and capturing audio frames.
Since:
1.0
Version:
1.0
struct AudioControl Defines the audio control. For details, see AudioControl. |
|
struct AudioAttribute Defines the audio attribute. For details, see AudioAttribute. |
|
struct AudioScene Defines the audio scene. For details, see AudioScene. |
|
struct AudioVolume Defines audio volume. For details, see AudioVolume. |
|
CaptureFrame )(struct AudioCapture *capture, void *frame, uint64_t requestBytes, uint64_t *replyBytes) |
Reads a frame of input data (uplink data) from the audio driver for capturing. |
GetCapturePosition )(struct AudioCapture *capture, uint64_t *frames, struct AudioTimeStamp *time) |
int32_t(* AudioCapture::CaptureFrame) (struct [AudioCapture](AudioCapture.md) *capture, void *frame, uint64_t requestBytes, uint64_t *replyBytes)
Description:
Reads a frame of input data (uplink data) from the audio driver for capturing.
Parameters:
capture | Indicates the pointer to the AudioCapture object to operate. |
frame | Indicates the pointer to the input data to read. |
requestBytes | Indicates the size of the input data, in bytes. |
replyBytes | Indicates the pointer to the actual length (in bytes) of the audio data to read. |
Returns:
Returns 0 if the input data is read successfully; returns a negative value otherwise.
int32_t(* AudioCapture::GetCapturePosition) (struct [AudioCapture](AudioCapture.md) *capture, uint64_t *frames, struct [AudioTimeStamp](AudioTimeStamp.md) *[time](zh-cn_topic_0000001054879478.md#gae7841e681c8c9d59818568d39553642c))
Description:
Obtains the last number of input audio frames.
Parameters:
capture | Indicates the pointer to the AudioCapture object to operate. |
frames | Indicates the pointer to the last number of input audio frames. |
time | Indicates the pointer to the timestamp associated with the frame. |
Returns:
Returns 0 if the last number is obtained; returns a negative value otherwise.
See also:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。