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@47:9e361da97763, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:54:45 2017 +0800
- Revision:
- 47:9e361da97763
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TMBOY | 47:9e361da97763 | 1 | #ifndef BAIDU_SPEEX_H |
| TMBOY | 47:9e361da97763 | 2 | #define BAIDU_SPEEX_H |
| TMBOY | 47:9e361da97763 | 3 | |
| TMBOY | 47:9e361da97763 | 4 | |
| TMBOY | 47:9e361da97763 | 5 | #ifdef __cplusplus |
| TMBOY | 47:9e361da97763 | 6 | extern "C" { |
| TMBOY | 47:9e361da97763 | 7 | #endif |
| TMBOY | 47:9e361da97763 | 8 | |
| TMBOY | 47:9e361da97763 | 9 | /** |
| TMBOY | 47:9e361da97763 | 10 | TYPE: |
| TMBOY | 47:9e361da97763 | 11 | typedef void (*bdspx_output_hdlr_t)(char *p_spx_buf, int n_bytes, int b_flush) |
| TMBOY | 47:9e361da97763 | 12 | |
| TMBOY | 47:9e361da97763 | 13 | DESC: |
| TMBOY | 47:9e361da97763 | 14 | callback to output speex data |
| TMBOY | 47:9e361da97763 | 15 | |
| TMBOY | 47:9e361da97763 | 16 | PARAM: |
| TMBOY | 47:9e361da97763 | 17 | @param[in] p_spx_buf: speex buffer to output |
| TMBOY | 47:9e361da97763 | 18 | @param[in] n_bytes: speex buffer length |
| TMBOY | 47:9e361da97763 | 19 | @param[in] b_flush: to flush all speex data to output |
| TMBOY | 47:9e361da97763 | 20 | */ |
| TMBOY | 47:9e361da97763 | 21 | typedef void (*bdspx_output_hdlr_t)(void *ctx, char *p_spx_buf, int n_bytes, int b_flush); |
| TMBOY | 47:9e361da97763 | 22 | |
| TMBOY | 47:9e361da97763 | 23 | int bdspx_speex_init(int n_sample_rate, void **buf); |
| TMBOY | 47:9e361da97763 | 24 | int bdspx_speex_encode(char *p_pcm_buff, int *p_len, int n_end, bdspx_output_hdlr_t output_hdlr, void *ctx, void *buf); |
| TMBOY | 47:9e361da97763 | 25 | void bdspx_speex_destroy(void *buf); |
| TMBOY | 47:9e361da97763 | 26 | #ifdef __cplusplus |
| TMBOY | 47:9e361da97763 | 27 | } |
| TMBOY | 47:9e361da97763 | 28 | #endif |
| TMBOY | 47:9e361da97763 | 29 | |
| TMBOY | 47:9e361da97763 | 30 | |
| TMBOY | 47:9e361da97763 | 31 | #endif |
| TMBOY | 47:9e361da97763 | 32 | |
| TMBOY | 47:9e361da97763 | 33 | |
| TMBOY | 47:9e361da97763 | 34 | |
| TMBOY | 47:9e361da97763 | 35 | |
| TMBOY | 47:9e361da97763 | 36 | |
| TMBOY | 47:9e361da97763 | 37 | |
| TMBOY | 47:9e361da97763 | 38 |
