| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 453 人关注过本帖
标题:又一个程序问题
只看楼主 加入收藏
面朝大海
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-7-24
收藏
 问题点数:0 回复次数:1 
又一个程序问题
为什么用VB设计的MP3播放器 播放当35后 会自动停止啊
搜索更多相关主题的帖子: 设计 MP3播放器 
2007-09-26 23:36
面朝大海
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-7-24
收藏
得分:0 

Private Sub cmdplay_Click()

On Error GoTo error_handle

Text3.Text = Mp3Play1.Play

Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub


Private Sub cmdOff_Click()

If cmdOff.Caption = "off" Then
Mp3Play1.SetErrorMode 1
cmdOff.Caption = "on"
Else
Mp3Play1.SetErrorMode 0
cmdOff.Caption = "off"
End If

End Sub

Private Sub cmdGet_Click()
On Error GoTo error_handle

HScroll1.Value = Mp3Play1.GetVolumeLeftP
Text27.Text = Mp3Play1.GetVolumeLeftP

Exit Sub
error_handle:
Text21.Text = Error
Resume Next
End Sub




Private Sub Command12_Click()
On Error GoTo error_handle

Text25.Text = Mp3Play1.Authorize(Text23.Text, Text24.Text)

Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub cmdAbout_Click()
Mp3Play1.AboutBox
End Sub

Private Sub cmdPause_Click()
On Error GoTo error_handle
Text26.Text = Mp3Play1.Pause
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub Command15_Click()
Mp3Play1.ChannelMode = 3

End Sub

Private Sub cmdClose_Click()
On Error GoTo error_handle

Text5.Text = Mp3Play1.Close
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub cmdopen_Click()
On Error GoTo error_handle
Text2.Text = Mp3Play1.Open(Text22.Text, "")
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub cmdStop_Click()
On Error GoTo error_handle
Text4.Text = Mp3Play1.Stop
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub CmdInfo_Click()
On Error GoTo error_handle
Text7.Text = "Bitrate: " & Mp3Play1.BitRate
Text8.Text = "Total Frame: " & Mp3Play1.FrameCount
Text9.Text = "Frame notify count: " & Mp3Play1.FrameNotifyCount
Text10.Text = "Has checksum: " & Mp3Play1.HasChecksums
Text11.Text = "Is copyrighted: " & Mp3Play1.IsCopyrighted
Text12.Text = "Is Original: " & Mp3Play1.IsOriginal
Text13.Text = "Layer: " & Mp3Play1.Layer
Text14.Text = "MPEG Mode: " & Mp3Play1.MPEGMode
Text15.Text = "MPEG Version: " & Mp3Play1.MPEGVersion
Text16.Text = "MS per frame: " & Mp3Play1.MsPerFrame
Text17.Text = "Sample Frequenz: " & Mp3Play1.SampleFrequency
Text18.Text = "Total time: " & Mp3Play1.TotalTime
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub Command6_Click()
On Error GoTo error_handle

Text20.Text = Mp3Play1.Seek(Text6.Text - 400)
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub Command7_Click()
On Error GoTo error_handle

Text20.Text = Mp3Play1.Seek(Text6.Text - 40)
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub Command8_Click()
On Error GoTo error_handle

Text20.Text = Mp3Play1.Seek(Text6.Text + 40)
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub

Private Sub Command9_Click()
On Error GoTo error_handle

Text20.Text = Mp3Play1.Seek(Text6.Text + 400)
Exit Sub
error_handle:
Text21.Text = Error
Resume Next

End Sub
Private Sub Form_Load()
Text1.Text = Mp3Play1.Version / 100
Text22.Text = DirList.Path
End Sub




Private Sub HScroll1_Change()
On Error GoTo error_handle
e = Mp3Play1.SetVolumeP(HScroll1.Value, HScroll1.Value)
Text27.Text = HScroll1.Value
Exit Sub
error_handle:
Text21.Text = Error
Resume Next
End Sub




Private Sub Mp3Play1_ActFrame(ByVal ActFrame As Long)
Text6.Text = ActFrame
Text19 = (ActFrame * Mp3Play1.MsPerFrame) \ 1000
End Sub

Private Sub Mp3Play1_ThreadEnded()

If Shape1.FillColor = &HC000& Then
Shape1.FillColor = &HC0&
Else
Shape1.FillColor = &HC000&
End If


End Sub
Private Sub Combo1_Click()
FileList.Pattern = Combo1.Text
End Sub

Private Sub dirList_change()
FileList.Path = DirList.Path

End Sub


Private Sub driveList_Change()
DirList.Path = driveList.Drive
End Sub

Private Sub filelist_click()
Label4.Caption = FileList.FileName
Text22.Text = DirList.Path + "\" + FileList.FileName
If Right$(DirList.Path, 1) = "\" Then
choicefile = DirList.Path + FileList.FileName
Else
choicefile = DirList.Path + "\" + FileList.FileName
End If
End Sub
2007-09-26 23:37
快速回复:又一个程序问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020675 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved