bowen liu
/
mbed-os-example-blinky
ex
Fork of mbed-os-example-mbed5-blinky by
Embed:
(wiki syntax)
Show/hide line numbers
baidu_speex.h
00001 #ifndef BAIDU_SPEEX_H 00002 #define BAIDU_SPEEX_H 00003 00004 00005 #ifdef __cplusplus 00006 extern "C" { 00007 #endif 00008 00009 /** 00010 TYPE: 00011 typedef void (*bdspx_output_hdlr_t)(char *p_spx_buf, int n_bytes, int b_flush) 00012 00013 DESC: 00014 callback to output speex data 00015 00016 PARAM: 00017 @param[in] p_spx_buf: speex buffer to output 00018 @param[in] n_bytes: speex buffer length 00019 @param[in] b_flush: to flush all speex data to output 00020 */ 00021 typedef void (*bdspx_output_hdlr_t)(void *ctx, char *p_spx_buf, int n_bytes, int b_flush); 00022 00023 int bdspx_speex_init(int n_sample_rate, void **buf); 00024 int bdspx_speex_encode(char *p_pcm_buff, int *p_len, int n_end, bdspx_output_hdlr_t output_hdlr, void *ctx, void *buf); 00025 void bdspx_speex_destroy(void *buf); 00026 #ifdef __cplusplus 00027 } 00028 #endif 00029 00030 00031 #endif 00032 00033 00034 00035 00036 00037 00038
Generated on Tue Jul 12 2022 16:28:53 by 1.7.2