精品文档
精品文档
PAGE
PAGE14
精品文档
PAGE
实用文档
#include"FM_Main.h"#include"CTL.H"#include#include#include#include"GUI.h"#include"ERR_CheckEnter.h"#pragmacomment(lib,"winmm.lib")#include"FM_CheckFile.c"#include"FM_Choose.c"#include"FM_List.c"#include"FM_Path.c"
intOrder=1;
//初始时为第一首歌,随音乐切换而切换--nextsong()
intNewOrder=0;
intAmount=0;
//歌曲总量
intbegin;//自定义列表中开始序号
intcirculatemode=1;
//循环模式
intpp=0;
intbegintemp=0;
//存储自定义列表边界
intww=-1;
//
显示自定义列表当前播放信息
intupordown=1;
//判断切歌方向
intfirstup=0;
intoriginvolume=500;//默认音量为500charv[40]="setaudioaavolumeto500";//初始化音量voidInit(){Order=1;NewOrder=0;Amount=0;circulatemode=1;pp=0;begintemp=0;ww=-1;upordown=1;firstup=0;originvolume=500;}voidShowFileList(){if(begintemp==0)begintemp=begin;
Amount=FM_CheckFile();
文案大全
实用文档
begin=Amount;if(NewOrder==0){Show_GUI_EIGHT();FM_CheckFilePrint(0,Amount);}else{Show_GUI_EIGHT();FM_CheckFilePrint(Amount,begintemp);}};voidShowFileDetails(){inti=0;if(upordown==1){if(NewOrder!=0){Order=Amount+1+ww;ww++;}
}if(upordown==2){if(firstup==0){if(NewOrder!=0){Order=Amount+1+ww;ww--;}firstup--;}else{if(NewOrder!=0){Order=Amount+1+ww;ww--;}}
文案大全
实用文档
}
firstup+=4;
i=Order-1;
printf("
正在播放的音乐\n");
printf("
\n");
printf("
歌曲号
歌曲名
歌手名\n");
printf("
\n");
printf("
%3d
",info[i].ID);
printf("
%-20s",info[i].song);
printf("
%-10s\n",info[i].singer);
printf("
\n");
}voidPlay(){if(NewOrder!=0)Order=Amount+1;charvol[10]="500";charv[40];charch[200];
sprintf(ch,"open\"%s\"aliasaa",info[Order-1].add);sprintf(v,"setaudioaavolumeto%s",vol);mciSendString(ch,NULL,0,NULL);mciSendString(v,NULL,0,NULL);mciSendString("playaarepeat",NULL,0,NULL);
//getchar();}voidStop(){mciSendString("pauseaa",NULL,0,NULL);printf("歌曲播放已暂停,输入3继续播放,输入12退出\n\n");getchar();}voidResume(){mciSendString("resumeaa",NULL,0,NULL);getchar();}voidFastForward(){intn=1;
文案大全
实用文档
intm=0;intd=0;intminute;intsecond;chardd[60][20];charte