1 #ifndef _RECORDER_H_ 2 #define _RECORDER_H_ 3 4 #include <stdint.h> 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 #include "uvoice_types.h" 10 11 int32_t recorder_init(void); 12 int32_t recorder_uninit(void); 13 int32_t recorder_start(media_format_t fmt, int32_t rate, int32_t channels, int32_t bits, int32_t samples, char *sink); 14 int32_t recorder_stop(void); 15 int32_t recorder_get_stream(uint8_t *buf, int32_t read_size); 16 17 #ifdef __cplusplus 18 } // extern "C" 19 #endif 20 #endif // _RECORDER_H_ 21