RSS订阅 | 匿名投稿
您的位置:网站首页 > 媒体 > 正文

Delphi实现背景音乐播放

作者:admin 来源: 日期:2013/11/12 11:12:28 人气: 标签:

procedure TForm1.Button1Click(Sender: TObject);begin//播放音乐  MCISendString(OPEN e: \1.MID type SEQUENCER ALIAS NN, , 0, 0);  MCISendString(PLAY NN FROM 0, , 0, 0);  MCISendString(CLOSE ANIMATION, , 0, 0);end; procedure TForm1.Button2Click(Sender: TObject);begin//停止播放  MCISendString(OPEN e: \1.MID type SEQUENCER ALIAS NN, , 0, 0);  MCISendString(STOP NN, , 0, 0);  MCISendString(CLOSE ANIMATION, , 0, 0);end;

读完这篇文章后,您心情如何?
0
0
0
0
0
0
0
0
本文网址: