Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
DuerOS-Light-SDK-v1.1.0/duer-os-light/src/baidu-speedx/baidu_speex.h
- Committer:
- TMBOY
- Date:
- 2017-07-18
- Revision:
- 47:9e361da97763
File content as of revision 47:9e361da97763:
#ifndef BAIDU_SPEEX_H
#define BAIDU_SPEEX_H
#ifdef __cplusplus
extern "C" {
#endif
/**
TYPE:
typedef void (*bdspx_output_hdlr_t)(char *p_spx_buf, int n_bytes, int b_flush)
DESC:
callback to output speex data
PARAM:
@param[in] p_spx_buf: speex buffer to output
@param[in] n_bytes: speex buffer length
@param[in] b_flush: to flush all speex data to output
*/
typedef void (*bdspx_output_hdlr_t)(void *ctx, char *p_spx_buf, int n_bytes, int b_flush);
int bdspx_speex_init(int n_sample_rate, void **buf);
int bdspx_speex_encode(char *p_pcm_buff, int *p_len, int n_end, bdspx_output_hdlr_t output_hdlr, void *ctx, void *buf);
void bdspx_speex_destroy(void *buf);
#ifdef __cplusplus
}
#endif
#endif
