NIM PC Cross Platform SDK
nim_device.h
Go to the documentation of this file.
1
8#ifndef NIM_SDK_DLL_API_NIM_DEVICE_H_
9#define NIM_SDK_DLL_API_NIM_DEVICE_H_
10
11#include "nim_device_def.h"
12#include "public_defines.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
33NIM_SDK_DLL_API void nim_vchat_start_device(enum NIMDeviceType type,
34 const char* device_path,
35 unsigned fps,
36 const char* json_extension,
38 const void* user_data);
39
46NIM_SDK_DLL_API void nim_vchat_end_device(enum NIMDeviceType type, const char* json_extension);
47
56NIM_SDK_DLL_API void nim_vchat_set_audio_data_cb(bool capture, const char* json_extension, nim_vchat_audio_data_cb_func cb, const void* user_data);
57
66NIM_SDK_DLL_API bool nim_vchat_custom_audio_data(uint64_t time, const char* data, uint32_t size, const char* json_extension);
67
83NIM_SDK_DLL_API bool nim_vchat_custom_video_data(uint64_t time,
84 const char* data,
85 uint32_t size,
86 uint32_t width,
87 uint32_t height,
88 const char* json_extension);
89
98NIM_SDK_DLL_API void nim_vchat_set_video_data_cb(bool capture, const char* json_extension, nim_vchat_video_data_cb_func cb, const void* user_data);
99
111NIM_SDK_DLL_API void nim_vchat_enum_device_devpath(enum NIMDeviceType type,
112 const char* json_extension,
114 const void* user_data);
115
123NIM_SDK_DLL_API void nim_vchat_set_audio_process_info(bool aec, bool ns, bool vad);
124
131NIM_SDK_DLL_API void nim_vchat_set_audio_volumn(unsigned char volumn, bool capture);
132
138NIM_SDK_DLL_API unsigned char nim_vchat_get_audio_volumn(bool capture);
139
157NIM_SDK_DLL_API bool nim_vchat_accompanying_sound(unsigned char id,
158 uint64_t time,
159 const char* data,
160 unsigned int size,
161 unsigned int rate,
162 unsigned int channels,
163 const char* json_extension);
164
173NIM_SDK_DLL_API void nim_vchat_set_audio_data_cb_ex(int type, const char* json_extension, nim_vchat_audio_data_cb_func_ex cb, const void* user_data);
174
182NIM_SDK_DLL_API void nim_vchat_add_device_status_cb(enum NIMDeviceType type, nim_vchat_device_status_cb_func cb, const void* user_data);
183
189NIM_SDK_DLL_API void nim_vchat_remove_device_status_cb(enum NIMDeviceType type);
190
207NIM_SDK_DLL_API void nim_vchat_start_extend_camera(const char* id,
208 const char* device_path,
209 uint32_t fps,
210 const char* json_extension,
212 const void* user_data);
213
220NIM_SDK_DLL_API void nim_vchat_stop_extend_camera(const char* id, const char* json_extension);
221
227NIM_SDK_DLL_API void nim_vchat_set_audio_input_auto_volumn(bool auto_volumn);
228
234
248NIM_SDK_DLL_API void nim_vchat_preload_effect(int id,
249 const char* path,
250 const char* json_extension,
252 const void* user_data);
253
263NIM_SDK_DLL_API void nim_vchat_play_effect(int id,
264 int loop_count,
265 const char* json_extension,
267 const void* user_data);
268
277NIM_SDK_DLL_API void nim_vchat_stop_effect(int id, const char* json_extension, nim_vchat_audio_effect_opt_cb_func cb, const void* user_data);
278
279#ifdef __cplusplus
280};
281#endif //__cplusplus
282#endif // NIM_SDK_DLL_API_NIM_DEVICE_H_
NIM_SDK_DLL_API void nim_vchat_set_audio_data_cb_ex(int type, const char *json_extension, nim_vchat_audio_data_cb_func_ex cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_end_device(enum NIMDeviceType type, const char *json_extension)
NIM_SDK_DLL_API bool nim_vchat_accompanying_sound(unsigned char id, uint64_t time, const char *data, unsigned int size, unsigned int rate, unsigned int channels, const char *json_extension)
NIM_SDK_DLL_API bool nim_vchat_custom_audio_data(uint64_t time, const char *data, uint32_t size, const char *json_extension)
NIM_SDK_DLL_API void nim_vchat_set_video_data_cb(bool capture, const char *json_extension, nim_vchat_video_data_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_audio_volumn(unsigned char volumn, bool capture)
NIM_SDK_DLL_API bool nim_vchat_get_audio_input_auto_volumn()
NIM_SDK_DLL_API void nim_vchat_set_audio_input_auto_volumn(bool auto_volumn)
NIM_SDK_DLL_API void nim_vchat_set_audio_process_info(bool aec, bool ns, bool vad)
NIM_SDK_DLL_API unsigned char nim_vchat_get_audio_volumn(bool capture)
NIM_SDK_DLL_API void nim_vchat_stop_effect(int id, const char *json_extension, nim_vchat_audio_effect_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_stop_extend_camera(const char *id, const char *json_extension)
NIM_SDK_DLL_API void nim_vchat_preload_effect(int id, const char *path, const char *json_extension, nim_vchat_audio_effect_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_remove_device_status_cb(enum NIMDeviceType type)
NIM_SDK_DLL_API void nim_vchat_enum_device_devpath(enum NIMDeviceType type, const char *json_extension, nim_vchat_enum_device_devpath_sync_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_start_extend_camera(const char *id, const char *device_path, uint32_t fps, const char *json_extension, nim_vchat_start_device_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_add_device_status_cb(enum NIMDeviceType type, nim_vchat_device_status_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_custom_video_data(uint64_t time, const char *data, uint32_t size, uint32_t width, uint32_t height, const char *json_extension)
NIM_SDK_DLL_API void nim_vchat_start_device(enum NIMDeviceType type, const char *device_path, unsigned fps, const char *json_extension, nim_vchat_start_device_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_play_effect(int id, int loop_count, const char *json_extension, nim_vchat_audio_effect_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_audio_data_cb(bool capture, const char *json_extension, nim_vchat_audio_data_cb_func cb, const void *user_data)
音视频设备 接口相关的常量函数等定义头文件
void(* nim_vchat_audio_data_cb_func_ex)(uint64_t time, const char *data, uint32_t size, int channels, int rate, int volume, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:146
void(* nim_vchat_device_status_cb_func)(enum NIMDeviceType type, uint32_t status, const char *device_path, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:121
void(* nim_vchat_enum_device_devpath_sync_cb_func)(bool ret, enum NIMDeviceType type, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:105
NIMDeviceType
Definition: nim_device_def.h:17
void(* nim_vchat_start_device_cb_func)(enum NIMDeviceType type, bool ret, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:163
void(* nim_vchat_audio_data_cb_func)(uint64_t time, const char *data, uint32_t size, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:175
void(* nim_vchat_video_data_cb_func)(uint64_t time, const char *data, uint32_t size, uint32_t width, uint32_t height, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:190
void(* nim_vchat_audio_effect_opt_cb_func)(int id, bool ret, int code, const char *json_extension, const void *user_data)
Definition: nim_device_def.h:207
NIM SDK 及 NIM ChatRoom SDK 公用头文件