我是个初学者,我在网上下载了《QQ语音伴侣》这个软件,由于它老出现注册信息,而且出现之后,就出现程序错误并关闭,所以我想自己做一个,可我不知道怎么做的
我看它的声音文件就一个,我如何才能从声音文件取出一段声音用呀
我看它的声音文件就一个,我如何才能从声音文件取出一段声音用呀
解决方案 »
- 请教delphi如何删除自身文件
- mysql备份
- 求助!!!!!
- symbol 'makeobjectinstance' is deprecated 的警告是怎么回事?
- Delphi中如何调用chm类型帮助文件?
- 为什么我用CreateThread创建线程时.参数不能传递进去?
- 调查一下:当程序员的你,是否害怕病毒呢?
- 可否提供Pascal的电子书,不胜感激!!!1
- 求简单的开发VCL的例子
- ListBox控件,如何将其所有item全部删除,难道一定要用循环一个个删除吗?
- (急急急)使用flash控件播放swf文件时,如何让应用程序知道何时播放完毕
- 我想请问各路高手在listview里面实现排序怎么做?
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, MPlayer, ExtCtrls;type
TForm1 = class(TForm)
SysMplTest: TMediaPlayer;
StdBtnFirst: TButton;
StdBtnSecond: TButton;
StdBtnThird: TButton;
SysTmrTimer: TTimer;
procedure FormCreate(Sender: TObject);
procedure StdBtnFirstClick(Sender: TObject);
procedure StdBtnSecondClick(Sender: TObject);
procedure StdBtnThirdClick(Sender: TObject);
procedure SysTmrTimerTimer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
SysMplTest.TimeFormat:=tfMilliseconds;
end;procedure TForm1.StdBtnFirstClick(Sender: TObject);
begin
SysTmrTimer.Tag:=0;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.StdBtnSecondClick(Sender: TObject);
begin
SysTmrTimer.Tag:=1;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.StdBtnThirdClick(Sender: TObject);
begin
SysTmrTimer.Tag:=2;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.SysTmrTimerTimer(Sender: TObject);
begin
SysMplTest.Play; Case SysTmrTimer.Tag Of
0:If SysMplTest.Position>=5000 Then SysMplTest.Pause;
1:If SysMplTest.Position>=30000 Then SysMplTest.Pause;
2:If SysMplTest.Position>=1000 Then SysMplTest.Pause;
End;
end;end.
1:If SysMplTest.Position>=10000 Then SysMplTest.Pause;
2:If SysMplTest.Position>=15000 Then SysMplTest.Pause;//这里的数字是时间,单位微秒
//单位是在SysMplTest.TimeFormat里定义的。
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, MPlayer, ExtCtrls;type
TForm1 = class(TForm)
SysMplTest: TMediaPlayer;
StdBtnFirst: TButton;
StdBtnSecond: TButton;
StdBtnThird: TButton;
SysTmrTimer: TTimer;
procedure FormCreate(Sender: TObject);
procedure StdBtnFirstClick(Sender: TObject);
procedure StdBtnSecondClick(Sender: TObject);
procedure StdBtnThirdClick(Sender: TObject);
procedure SysTmrTimerTimer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
SysMplTest.TimeFormat:=tfMilliseconds;
end;procedure TForm1.StdBtnFirstClick(Sender: TObject);
begin
SysTmrTimer.Tag:=0;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.StdBtnSecondClick(Sender: TObject);
begin
SysTmrTimer.Tag:=1;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.StdBtnThirdClick(Sender: TObject);
begin
SysTmrTimer.Tag:=2;
SysTmrTimer.Enabled :=True;
end;procedure TForm1.SysTmrTimerTimer(Sender: TObject);
begin
SysMplTest.Play; Case SysTmrTimer.Tag Of
0:If SysMplTest.Position>=5000 Then SysMplTest.Stop;
1:If SysMplTest.Position>=10000 Then SysMplTest.Stop;
2:If SysMplTest.Position>=15000 Then SysMplTest.Stop;
End;
end;end.