![]() |
CI13LC SDK API手册
2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
|
结构体 | |
| struct | audio_format_info_t |
| 音频信息数据结构 更多... | |
类型定义 | |
| typedef void(* | SMP_PLAY_END_CALLBACK) (int32_t arg) |
枚举 | |
| enum | smp_msg_id_t { SMP_MSG_START_PLAY = 0, SMP_MSG_STOP_PLAY } |
函数 | |
| int | smp_init (void) |
| Initialize the simple mp3 player module. 更多... | |
| int | smp_play (uint32_t data_addr, void *play_end_callback) |
| Start playing. 更多... | |
| void | smp_stop () |
| void | audio_play_hw_pa_da_ctl (FunctionalState cmd, bool is_control_pa) |
| pa、da控制,可选择是否控制功放 更多... | |
| void | audio_play_set_vol_gain (int32_t gain) |
| 调节播放音量 更多... | |
| struct audio_format_info_t |
| typedef void(* SMP_PLAY_END_CALLBACK) (int32_t arg) |
| void audio_play_hw_pa_da_ctl | ( | FunctionalState | cmd, |
| bool | is_control_pa | ||
| ) |
pa、da控制,可选择是否控制功放
| cmd | pa使能或失能 |
| void audio_play_set_vol_gain | ( | int32_t | gain | ) |
调节播放音量
| gain | 音量(0–100) |
| int smp_init | ( | void | ) |
Initialize the simple mp3 player module.
| int smp_play | ( | uint32_t | data_addr, |
| void * | play_end_callback | ||
| ) |
Start playing.
| data_addr | uint32_t It's used to specifiy the address of the mp3 data. |
| play_end_callback | A pointer to a function that will be called when play to end. |
| void smp_stop | ( | ) |
1.8.14