这是歌词解析与现实函数
#include"main.h"
#define SONG_NUM 12 //显示歌词列数
int row;//歌词行数
char *lrc_row[50];
int fp_lrc;//打开的歌词标识符
SONGNAME *head_name,*dispname;
SONGLRC *head_lrc,*displrc;
Lrc *sort_lrc(Lrc *head){
Lrc *pa=head,*pb;
char *next;
int temp;
while(pa->next!=NULL){
pb=pa->next;
while(pb!=NULL){
if(pa->time>pb->time){
temp=pa->time;
pa->time=pb->time;
pb->time=temp;
next=pa->song_lrc;
pa->song_lrc=pb->song_lrc;
pb->song_lrc=next;
}
pb=pb->next;
}
pa=pa->next;
}
return head;
}
void disp_time(){
int temp=atoi(time_temp);
char Time[6]="";
TFT_File_Picture(windowHZ, 204, 44, "./picture/time.bmp", 1);
Time[0]=temp/60/10+'0';
Time[1]=temp/60%10+'0';
Time[2]=':';
Time[3]=temp%60/10+'0