1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 * 4 */ 5 6 #ifndef __UVOICE_MLIST_H__ 7 #define __UVOICE_MLIST_H__ 8 9 /** @defgroup uvoice_mlist_api uvoice_mlist 10 * @ingroup uvoice_aos_api 11 * @{ 12 */ 13 14 /** 15 * 显示播放列表 16 * 17 * @retrun 成功返回0,失败返回非0. 18 */ 19 int mlist_source_show(void); 20 21 /** 22 * 扫描本地音频文件,更新播放列表 23 * 24 * @retrun 成功返回0,失败返回非0. 25 */ 26 int mlist_source_scan(void); 27 28 /** 29 * 获取播放列表 30 * 31 * @param[in] index 播放列表中音频文件序号 32 * @param[out] path 音频文件路径 33 * @param[in] len 音频文件路径长度 34 * @retrun 成功返回0,失败返回非0. 35 */ 36 int mlist_source_get(int index, char *path, int len); 37 38 /** 39 * 删除播放列表中某个音频文件 40 * 41 * @param[in] index 播放列表序号为index的音频文件 42 * @retrun 成功返回0,失败返回非0. 43 */ 44 int mlist_source_del(int index); 45 46 /** 47 * 获取播放列表中正在播放音频文件的列表序号 48 * 49 * @param[out] index 播放列表中音频文件序号 50 * @retrun 成功返回0,失败返回非0. 51 */ 52 int mlist_index_get(int *index); 53 54 /** 55 * 设置当前正在播放音频文件的列表序号 56 * 57 * @param[in] index 播放列表序号 58 * @retrun 成功返回0,失败返回非0. 59 */ 60 int mlist_index_set(int index); 61 62 /** 63 * @} 64 */ 65 66 #endif /* __UVOICE_MLIST_H__ */ 67 68