📄 rec_utile.c
字号:
/****************************
* mp3_utile.c
****************************/
#include <string.h>
#include "api.h"
#include "lcd.h"
#include "common.h"
#include "display.h"
//#include "mp3_utile.h"
#include "rec_display.h"
#include "rec_main.h"
#include "prefer.h"
#if 0
BOOLEAN music_pause(void)
{
if(api_bPause()) {
return true;
}
return false;
}
BOOLEAN music_play(void)
{
if(api_bPlay()) {
bg_color = COLOR_WHITE;
memcpy(&play_dir, &curr_dir, sizeof(FILE_INFORMATION));
music_on = true;
return true;
}
return false;
}
BOOLEAN music_stop(void)
{
if(api_bStop()) {
music_on = false;
return true;
}
return false;
}
#endif
void song_timeon(SONGTIME type)
{
INT32U data sec;
if(type == TIME_PLAY)
sec = api_u32GetPlayingTime();
else if(type == TIME_LEFT)
sec = curr_music.u32Length - api_u32GetPlayingTime();
else
sec = curr_music.u32Length;
my_sprintf(_buf, "%02d:%02d:%02d",(INT16U)((sec /216000) / 3600), (INT16U)((sec % 3600) / 60), (INT16U)(sec % 60));
}
#if 0
void deal_loop()
{
if(api_bStop() == FALSE)
return;
if(tUserPreference.u8RepeatMode == 0)//NORMAL LOOP
{
if (find_good_media(1, SELECT_CUR) == FALSE)
return;
if (1 == curr_music.)u16Order
music_on = false;
else {
if (api_bPlay() == FALSE)
return;
music_on = 1;
}
}
else if(tUserPreference.u8RepeatMode == 1)
{
if (find_good_media(0, SELECT_CUR) == FALSE)
return ;
if (api_bPlay() == FALSE)
return ;
music_on = 1;
}
else
{
if (find_good_media(1, SELECT_CUR) == FALSE)
return ;
if (api_bPlay() == FALSE)
return ;
music_on = 1;
}
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -