CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
宏定义
audio_play_config.h 文件参考
#include "sdk_default_config.h"

浏览源代码.

宏定义

#define AUDIO_PLAYER_CONFIG_DEFAULT_VOLUME   70
 
#define AUDIO_PLAYER_CONFIG_MP3_SAVE_DECODER_STATUS   0
 
#define AUDIO_PLAYER_CONFIG_MP3_USE_OUTSIDE_MP3TABLE   0
 
#define AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_HARD   0
 
#define AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_SOFT   0
 
#define AUDIO_PLAY_USE_INNER_CODEC_HPOUT_MUTE   0
 
#define AUDIO_PLAYER_PROCTHREAD_STACK   (480)
 
#define AUDIO_PLAYER_DATATHREAD_STACK   (280)
 
#define AUDIO_FILE_MAX_NAME_SIZE   (30)
 
#define AUDIO_PLAYER_THRESHOLD_DATA_SIZE   (3200-576)
 

宏定义说明

◆ AUDIO_FILE_MAX_NAME_SIZE

#define AUDIO_FILE_MAX_NAME_SIZE   (30)

剩余多少音频后去释放THRESHOLD回调函数

◆ AUDIO_PLAY_USE_INNER_CODEC_HPOUT_MUTE

#define AUDIO_PLAY_USE_INNER_CODEC_HPOUT_MUTE   0

◆ AUDIO_PLAYER_CONFIG_DEFAULT_VOLUME

#define AUDIO_PLAYER_CONFIG_DEFAULT_VOLUME   70

播放器默认音量大小

◆ AUDIO_PLAYER_CONFIG_MP3_SAVE_DECODER_STATUS

#define AUDIO_PLAYER_CONFIG_MP3_SAVE_DECODER_STATUS   0

mp3解码器保存上下文(消耗额外内存,在两首mp3互相切换时需要开启)

◆ AUDIO_PLAYER_CONFIG_MP3_USE_OUTSIDE_MP3TABLE

#define AUDIO_PLAYER_CONFIG_MP3_USE_OUTSIDE_MP3TABLE   0

◆ AUDIO_PLAYER_DATATHREAD_STACK

#define AUDIO_PLAYER_DATATHREAD_STACK   (280)

sd卡音频文件名称长度

◆ AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_HARD

#define AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_HARD   0

CI放音设备抗pop策略,这些策略目前仅有部分策略在云+端方案使用

◆ AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_SOFT

#define AUDIO_PLAYER_FIX_DEVICE_POP_ISSUE_SOFT   0

◆ AUDIO_PLAYER_PROCTHREAD_STACK

#define AUDIO_PLAYER_PROCTHREAD_STACK   (480)

播放器任务栈大小配置

◆ AUDIO_PLAYER_THRESHOLD_DATA_SIZE

#define AUDIO_PLAYER_THRESHOLD_DATA_SIZE   (3200-576)