CI13LC SDK API手册  2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
结构体 | 类型定义 | 枚举 | 函数
simple_mp3_player.h 文件参考
#include "FreeRTOS.h"
#include <stdbool.h>
#include "ci_system.h"

浏览源代码.

结构体

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)
 调节播放音量 更多...
 

结构体说明

◆ audio_format_info_t

struct audio_format_info_t

音频信息数据结构

成员变量
uint8_t nChans

通道数

int32_t out_min_size

帧长度

uint32_t samprate

采样率

类型定义说明

◆ SMP_PLAY_END_CALLBACK

typedef void(* SMP_PLAY_END_CALLBACK) (int32_t arg)

枚举类型说明

◆ smp_msg_id_t

枚举值
SMP_MSG_START_PLAY 
SMP_MSG_STOP_PLAY 

函数说明

◆ audio_play_hw_pa_da_ctl()

void audio_play_hw_pa_da_ctl ( FunctionalState  cmd,
bool  is_control_pa 
)

pa、da控制,可选择是否控制功放

参数
cmdpa使能或失能

◆ audio_play_set_vol_gain()

void audio_play_set_vol_gain ( int32_t  gain)

调节播放音量

参数
gain音量(0–100)

◆ smp_init()

int smp_init ( void  )

Initialize the simple mp3 player module.

返回
int 1: successed; not 1: failed.

◆ smp_play()

int smp_play ( uint32_t  data_addr,
void *  play_end_callback 
)

Start playing.

参数
data_addruint32_t It's used to specifiy the address of the mp3 data.
play_end_callbackA pointer to a function that will be called when play to end.
返回
int 1: successed; not 1: failed. t

◆ smp_stop()

void smp_stop ( )