关于c#设计像QQ音乐那样的歌词显示条

hao369120604 2010-11-09 05:34:51
就是能自动下载匹配歌词 然后唱的时候能跟好歌词就行 在网上找了找例子 都没有注释 看的一头雾水
...全文
156 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hao369120604 2010-11-10
  • 打赏
  • 举报
回复
 private static string getList_add_geci(string currentPos)
{

try
{
for (int i = 0; i < lrcString.Length; i++)
{
int l = lrcString[i].LastIndexOf("]");
if(l == 9)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}

}
else
if (l == 19)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}

}
else
if (l == 29)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}

}
else
if (l == 39)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 38, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}

}
else
if (l == 49)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 38, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 48, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}

}

}
return listItemUnAdd;
}
catch
{
return listItemUnAdd;
}
}

这个方法的参数是干什么的啊 看半天也没明白
demonccgg 2010-11-09
  • 打赏
  • 举报
回复
下载歌词 你首先得知道一个提供歌词文件的服务器

你可以用记事本打开歌词文件,里面都是时间标示的文本
歌曲播放的时候控制好时间就行
laomengzi 2010-11-09
  • 打赏
  • 举报
回复
没做过,是不是用窗口显示的啊?帮顶了!
chenqianming150 2010-11-09
  • 打赏
  • 举报
回复
哪里啊 把他拿来看看阿

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧