NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_audio_def.h
浏览该文件的文档.
1
8#ifndef _NIM_AUDIO_DLL_EXPORT_HEADERS_H_
9#define _NIM_AUDIO_DLL_EXPORT_HEADERS_H_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
18 kSuccess = 200,
20 kFailed = 100,
33};
34
38 AAC = 0,
40 AMR = 1,
41};
42
47typedef void (*nim_rescode_cb)(int);
48
56typedef void (*nim_rescode_id_cb)(int rescode, const char* file_path, const char* call_id, const char* res_id);
57
74typedef void (*nim_stop_capture_cb)(int rescode,
75 const char* call_id,
76 const char* res_id,
77 const char* file_path,
78 const char* file_ext,
79 long file_size,
80 int audio_duration);
81
87typedef void (*nim_enum_capture_device_cb)(int rescode, const wchar_t* device_list);
88
89#ifdef __cplusplus
90};
91#endif //__cplusplus
92#endif //_NIM_AUDIO_DLL_EXPORT_HEADERS_H_
nim_audio_rescode
Definition: nim_audio_def.h:16
@ kThreadError
线程出错退出,需要重新初始化语音模块
Definition: nim_audio_def.h:32
@ kClientNotExist
采集或播放对象或操作不存在
Definition: nim_audio_def.h:30
@ kFailed
操作失败
Definition: nim_audio_def.h:20
@ kClientCapturing
正在采集中,操作失败
Definition: nim_audio_def.h:26
@ kCaptureDeviceInitError
采集设备初始化失败(e.g. 找不到mic设备)
Definition: nim_audio_def.h:28
@ kClientPlaying
正在播放中,操作失败
Definition: nim_audio_def.h:24
@ kUninitError
未初始化或未成功初始化
Definition: nim_audio_def.h:22
@ kSuccess
成功
Definition: nim_audio_def.h:18
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)
Definition: nim_audio_def.h:74
void(* nim_rescode_cb)(int)
Definition: nim_audio_def.h:47
void(* nim_rescode_id_cb)(int rescode, const char *file_path, const char *call_id, const char *res_id)
Definition: nim_audio_def.h:56
void(* nim_enum_capture_device_cb)(int rescode, const wchar_t *device_list)
Definition: nim_audio_def.h:87
nim_audio_type
Definition: nim_audio_def.h:36
@ AMR
amr格式
Definition: nim_audio_def.h:40
@ AAC
aac格式
Definition: nim_audio_def.h:38