KT24-1110_65E-HA-651B/apps/soundbox/include/task_manager/music/music.h
2024-11-10 18:44:17 +08:00

30 lines
798 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __MUSIC_NEW_H__
#define __MUSIC_NEW_H__
#include "system/app_core.h"
#include "system/includes.h"
#include "server/server_core.h"
#include "media/audio_decoder.h"
#include "music_player.h"
#include "app_config.h"
#if (TCFG_USB_DM_MULTIPLEX_WITH_SD_DAT0)
#define MUSIC_DEV_ONLINE_START_AFTER_MOUNT_EN 0//如果是u盘和SD卡复用 这里必须为0 保证usb枚举的时候解码是停止的
#else
#define MUSIC_DEV_ONLINE_START_AFTER_MOUNT_EN 1
#endif
enum {
MUSIC_TASK_START_BY_NORMAL = 0x0,
MUSIC_TASK_START_BY_BREAKPOINT,
MUSIC_TASK_START_BY_SCLUST,
MUSIC_TASK_START_BY_NUMBER,
MUSIC_TASK_START_BY_PATH,
};
void music_task_dev_online_start(void);
void music_task_set_parm(u8 type, int val);
void music_player_err_deal(int err);
#endif//__MUSIC_NEW_H__