NIM 跨平台 C++ SDK
|
NIM 提供的语音录制和播放工具接口的相关定义的头文件 更多...
类型定义 | |
typedef void(* | nim_rescode_cb) (int) |
typedef void(* | nim_rescode_id_cb) (int rescode, const char *file_path, const char *call_id, const char *res_id) |
typedef void(* | nim_stop_capture_cb) (int rescode, const char *call_id, const char *res_id, const char *file_path, const char *file_ext, long file_size, int audio_duration) |
typedef void(* | nim_enum_capture_device_cb) (int rescode, const wchar_t *device_list) |
枚举 | |
enum | nim_audio_rescode { kSuccess = 200 , kFailed = 100 , kUninitError = 101 , kClientPlaying = 102 , kClientCapturing = 103 , kCaptureDeviceInitError = 104 , kClientNotExist = 105 , kThreadError = 300 } |
enum | nim_audio_type { AAC = 0 , AMR = 1 } |
NIM 提供的语音录制和播放工具接口的相关定义的头文件
void(* nim_enum_capture_device_cb)(int rescode, const wchar_t *device_list) |
NIM AUDIO 获取录音设备操作回调
[out] | rescode | 操作结果,一切正常200 |
[out] | device_list | 设备列表 |
void(* nim_rescode_cb)(int rescode) |
NIM AUDIO 通用操作回调
[out] | rescode | 操作结果,一切正常200 |
void(* nim_rescode_id_cb)(int rescode, const char *file_path, const char *call_id, const char *res_id) |
NIM AUDIO 通用操作回调
[out] | rescode | 操作结果,一切正常200 |
[out] | file_path | 播放文件绝对路径 |
[out] | call_id | 用以定位资源的一级ID,可选 |
[out] | res_id | 用以定位资源的二级ID,可选 |
void(* nim_stop_capture_cb)(int rescode, const char *call_id, const char *res_id, const char *file_path, const char *file_ext, long file_size, int audio_duration) |
NIM AUDIO 录音完成操作回调
[out] | rescode | 操作结果,一切正常200 |
[out] | call_id | 用以定位资源的一级ID,可选 |
[out] | res_id | 用以定位资源的二级ID,可选 |
[out] | file_path | 文件绝对路径 |
[out] | file_ext | 文件扩展名 |
[out] | file_size | 文件大小 |
[out] | audio_duration | 语音时长 |
enum nim_audio_rescode |
enum nim_audio_type |