|
|
@ -9,7 +9,7 @@ extern "C" { |
|
|
|
* |
|
|
|
* @param data 音频数据 |
|
|
|
* @param len 音频数据长度 |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
typedef void (*spisound_cb_t)(int32_t *data, uint32_t len); |
|
|
|
|
|
|
@ -58,6 +58,7 @@ static inline const char *error_code_to_string(error_code_t code) { |
|
|
|
*/ |
|
|
|
error_code_t spisound_init(const char *deviceName, int csgpionId, spisound_cb_t callback); |
|
|
|
error_code_t spisound_start_capture(void); |
|
|
|
const char *spisound_libversion(); |
|
|
|
|
|
|
|
void spisound_dump_last_error(); |
|
|
|
#ifdef cplusplus |
|
|
|