提交 f5eaab9a 编写于 作者: L liuyuehua1

New native interface description.

Signed-off-by: Nliuyuehua1 <liuyuehua1@huawei.com>
上级 3115b782
# OpenSLES_OpenHarmony.h
**Description:**
提供录音过程中通过回调函数获取包含录音数据的buffer及使用后将buffer加入空闲队列的操作接口。
**Version:**
1.0
### Functions
| Function | Description |
| -------- | -------- |
| SLresult (*Enqueue)(SLOHBufferQueueItf self, const void *buffer, SLuint32 size) | 将保存玩录音数据后的buffer加入空闲的buffer队列 |
| SLresult (*Clear) (SLOHBufferQueueItf self) | 录音结束后销毁BufferQueue接口对象 |
| SLresult (*GetState) (SLOHBufferQueueItf self, SLOHBufferQueueState *state) | 获取buffer的状态 |
| SLresult (*GetBuffer) (SLOHBufferQueueItf self, SLuint8** buffer, SLuint32& size) | 获取从输入设备存入录音数据的buffer |
| SLresult (*RegisterCallback) (SLOHBufferQueueItf self, SlOHBufferQueueCallback callback, void* pContext) | 注册读取音频数据的回调函数 |
\ No newline at end of file
......@@ -25,6 +25,7 @@
- [native_interface_xcomponent.h](native__interface__xcomponent_8h.md)
- [raw_dir.h](raw__dir_8h.md)
- [raw_file.h](raw__file_8h.md)
- [OpenSLES_OpenHarmony.h](OpenSLES_OpenHarmony.md)
- 结构体
- [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md)
- [OH_NativeXComponent_Callback](_o_h___native_x_component___callback.md)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册