CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
audio_play_device.h
浏览该文件的文档.
1 
11 #ifndef _AUDIO_PLAY_DEVICE_H_
12 #define _AUDIO_PLAY_DEVICE_H_
13 
14 #include <stdint.h>
15 #include "audio_play_config.h"
16 #include "ci130x_system.h"
17 #include "audio_play_process.h"
18 
19 
20 
21 void audio_play_hw_per_init(void);
24 int32_t audio_play_hw_write_data(void* pcm_buf,uint32_t buf_size);
25 int32_t audio_play_hw_queue_is_full(void);
27 int32_t audio_play_hw_clean_data(void);
28 #if AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_HARD
29 void audio_play_hw_fix_pop_issue_hard(void);
30 void audio_play_hw_fix_pop_issue_hard_done(void);
31 #endif
32 #if AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_SOFT
33 void audio_play_hw_fix_pop_issue_soft(void);
34 void audio_play_hw_fix_pop_issue_soft_done(void);
35 #endif
36 
37 
38 #endif /* _AUDIO_PLAY_DEVICE_H_ */
int32_t audio_play_hw_get_queue_remain_nums(void)
查询硬件待处理的消息个数
Definition: audio_play_device.c:242
void audio_play_hw_start(FunctionalState pa_cmd, audio_format_info_t *audio_format_info)
声卡驱动开始播放
Definition: audio_play_device.c:149
音频信息数据结构
Definition: audio_play_process.h:121
void audio_play_hw_stop(FunctionalState pa_cmd)
声卡驱动停止播放
Definition: audio_play_device.c:190
void audio_play_hw_per_init(void)
播放硬件声卡预初始化
Definition: audio_play_device.c:63
audio_format_info_t audio_format_info
播音配置参数表
Definition: board_port_template.c:414
chip级定义
int32_t audio_play_hw_queue_is_full(void)
查询音频数据消息是否发满
Definition: audio_play_device.c:232
FunctionalState
Definition: ci130x_system.h:86
int32_t audio_play_hw_write_data(void *pcm_buf, uint32_t buf_size)
向硬件写入音频数据
Definition: audio_play_device.c:204
int32_t audio_play_hw_clean_data(void)
清理写入硬件的音频数据
Definition: audio_play_device.c:222