|
xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
|
音频设备配置结构体 更多...
#include <xt_audio_dev.h>
成员变量 | |
| const char * | drv_name |
| xt_audio_mode_t | mode |
| uint16_t | sample_freq |
| uint8_t | sample_bits |
| uint8_t | channel_num |
| uint16_t | frame_size |
| uint8_t | write_wq_num |
| uint8_t | read_wq_num |
| xt_audio_dev_evt_cb_t | evt_cb |
| void * | evt_cb_user_data |
音频设备配置结构体
在文件 xt_audio_dev.h 第 78 行定义.
| uint8_t xt_audio_dev_config::channel_num |
通道数
在文件 xt_audio_dev.h 第 83 行定义.
| const char* xt_audio_dev_config::drv_name |
匹配已注册驱动,NULL/空串时取第一个
在文件 xt_audio_dev.h 第 79 行定义.
| xt_audio_dev_evt_cb_t xt_audio_dev_config::evt_cb |
事件回调
在文件 xt_audio_dev.h 第 87 行定义.
| void* xt_audio_dev_config::evt_cb_user_data |
事件回调用户数据
在文件 xt_audio_dev.h 第 88 行定义.
| uint16_t xt_audio_dev_config::frame_size |
帧大小
在文件 xt_audio_dev.h 第 84 行定义.
| xt_audio_mode_t xt_audio_dev_config::mode |
音频模式
在文件 xt_audio_dev.h 第 80 行定义.
| uint8_t xt_audio_dev_config::read_wq_num |
读队列个数
在文件 xt_audio_dev.h 第 86 行定义.
| uint8_t xt_audio_dev_config::sample_bits |
采样位数
在文件 xt_audio_dev.h 第 82 行定义.
| uint16_t xt_audio_dev_config::sample_freq |
采样率
在文件 xt_audio_dev.h 第 81 行定义.
| uint8_t xt_audio_dev_config::write_wq_num |
写队列个数
在文件 xt_audio_dev.h 第 85 行定义.