www.pudn.com > mp3play.ZIP > mp3play.frm
VERSION 5.00
Object = "{3B00B10A-6EF0-11D1-A6AA-0020AFE4DE54}#1.0#0"; "MP3PLAY.OCX"
Begin VB.Form Form1
Caption = "MP3PLAY.OCX Test"
ClientHeight = 5595
ClientLeft = 3645
ClientTop = 3465
ClientWidth = 7155
LinkTopic = "Form1"
ScaleHeight = 5595
ScaleWidth = 7155
Begin MPEGPLAYLib.Mp3Play Mp3Play1
Height = 1335
Left = 8670
TabIndex = 54
Top = 3480
Width = 1485
_Version = 65536
_ExtentX = 2619
_ExtentY = 2355
_StockProps = 0
End
Begin VB.Frame Frame15
Caption = "Pause Result"
Height = 705
Left = -60
TabIndex = 51
Top = 3000
Width = 1905
Begin VB.TextBox Text26
Height = 300
Left = 1140
TabIndex = 53
Top = 270
Width = 600
End
Begin VB.CommandButton Command14
Caption = "Pause"
Height = 285
Left = 180
TabIndex = 52
Top = 270
Width = 765
End
End
Begin VB.Frame Frame14
Caption = "Password Key"
Height = 1185
Left = 1890
TabIndex = 46
Top = 0
Width = 2625
Begin VB.TextBox Text25
Height = 300
Left = 1500
TabIndex = 50
Top = 720
Width = 1005
End
Begin VB.CommandButton Command12
Caption = "set"
Height = 285
Left = 1590
TabIndex = 49
Top = 300
Width = 765
End
Begin VB.TextBox Text24
Height = 300
Left = 180
TabIndex = 48
Text = "KEYWORD"
Top = 690
Width = 1215
End
Begin VB.TextBox Text23
Height = 300
Left = 180
TabIndex = 47
Text = "PASSWORD"
Top = 270
Width = 1215
End
End
Begin VB.Frame Frame13
Caption = "System Volume"
Height = 1065
Left = 1950
TabIndex = 44
Top = 3450
Width = 2565
Begin VB.TextBox Text27
Height = 330
Left = 570
TabIndex = 57
Top = 690
Width = 615
End
Begin VB.HScrollBar HScroll1
Height = 315
Left = 90
Max = 100
TabIndex = 56
Top = 270
Width = 2295
End
Begin VB.CommandButton Command11
Caption = "Get"
Height = 345
Left = 1290
TabIndex = 45
Top = 690
Width = 705
End
End
Begin VB.Frame Frame12
Caption = "Filename"
Height = 705
Left = 1950
TabIndex = 42
Top = 1230
Width = 2565
Begin VB.TextBox Text22
Height = 300
Left = 150
TabIndex = 43
Text = "C:\song.mp3"
ToolTipText = "Enter here the mp3 filename"
Top = 270
Width = 2235
End
End
Begin VB.Frame Frame11
Caption = "Errortext"
Height = 975
Left = 1260
TabIndex = 39
Top = 4530
Width = 3345
Begin VB.TextBox Text21
Height = 300
Left = 990
TabIndex = 41
Top = 390
Width = 2265
End
Begin VB.CommandButton Command10
Caption = "off"
Height = 375
Left = 150
TabIndex = 40
Top = 330
Width = 645
End
End
Begin VB.Frame Frame10
Caption = "Seek"
Height = 585
Left = 1980
TabIndex = 33
Top = 2760
Width = 2535
Begin VB.TextBox Text20
Height = 300
Left = 1950
TabIndex = 38
Top = 210
Width = 465
End
Begin VB.CommandButton Command9
Caption = "+10"
Height = 300
Left = 1410
TabIndex = 37
Top = 200
Width = 400
End
Begin VB.CommandButton Command8
Caption = "+1"
Height = 300
Left = 960
TabIndex = 36
Top = 200
Width = 400
End
Begin VB.CommandButton Command7
Caption = "-1"
Height = 300
Left = 510
TabIndex = 35
Top = 200
Width = 400
End
Begin VB.CommandButton Command6
Caption = "-10"
Height = 300
Left = 60
TabIndex = 34
Top = 200
Width = 400
End
End
Begin VB.Frame Frame9
Caption = "Acttime"
Height = 705
Left = 3240
TabIndex = 31
Top = 2010
Width = 1275
Begin VB.TextBox Text19
Height = 300
Left = 180
TabIndex = 32
Text = "0"
Top = 270
Width = 855
End
End
Begin VB.Frame Frame8
Caption = "Thread endet"
Height = 885
Left = -60
TabIndex = 30
Top = 4500
Width = 1245
Begin VB.Shape Shape1
BackColor = &H0000C000&
FillColor = &H000000C0&
FillStyle = 7 'Diagonalkreuz
Height = 495
Left = 120
Top = 240
Width = 975
End
End
Begin VB.Frame Frame7
Caption = "MP3 Infos"
Height = 5355
Left = 4680
TabIndex = 16
Top = 30
Width = 2295
Begin VB.TextBox Text18
Height = 300
Left = 100
TabIndex = 29
Top = 4230
Width = 2000
End
Begin VB.TextBox Text17
Height = 300
Left = 100
TabIndex = 28
Top = 3840
Width = 2000
End
Begin VB.TextBox Text16
Height = 300
Left = 100
TabIndex = 27
Top = 3480
Width = 2000
End
Begin VB.TextBox Text15
Height = 300
Left = 100
TabIndex = 26
Top = 3120
Width = 2000
End
Begin VB.TextBox Text14
Height = 300
Left = 100
TabIndex = 25
Top = 2760
Width = 2000
End
Begin VB.CommandButton Command5
Caption = "Get Info"
Height = 405
Left = 540
TabIndex = 24
Top = 4680
Width = 1095
End
Begin VB.TextBox Text13
Height = 300
Left = 100
TabIndex = 23
Top = 2400
Width = 2000
End
Begin VB.TextBox Text12
Height = 300
Left = 100
TabIndex = 22
Top = 2040
Width = 2000
End
Begin VB.TextBox Text11
Height = 300
Left = 100
TabIndex = 21
Top = 1680
Width = 2000
End
Begin VB.TextBox Text10
Height = 300
Left = 100
TabIndex = 20
Top = 1320
Width = 2000
End
Begin VB.TextBox Text9
Height = 300
Left = 100
TabIndex = 19
Top = 960
Width = 2000
End
Begin VB.TextBox Text8
Height = 300
Left = 100
TabIndex = 18
Top = 600
Width = 2000
End
Begin VB.TextBox Text7
Height = 300
Left = 100
TabIndex = 17
Top = 240
Width = 2000
End
End
Begin VB.Frame Frame6
Caption = "Actframe"
Height = 675
Left = 1950
TabIndex = 14
Top = 2010
Width = 1245
Begin VB.TextBox Text6
Height = 300
Left = 180
TabIndex = 15
Text = "0"
Top = 270
Width = 825
End
End
Begin VB.Frame Frame5
Caption = "Close Result"
Height = 675
Left = 0
TabIndex = 11
Top = 3720
Width = 1845
Begin VB.TextBox Text5
Height = 300
Left = 1110
TabIndex = 13
Top = 240
Width = 600
End
Begin VB.CommandButton Command2
Caption = "Close"
Height = 285
Left = 150
TabIndex = 12
Top = 240
Width = 705
End
End
Begin VB.Frame Frame4
Caption = "Stop Result"
Height = 675
Left = -30
TabIndex = 8
Top = 2250
Width = 1875
Begin VB.TextBox Text4
Height = 300
Left = 1080
TabIndex = 10
Top = 240
Width = 600
End
Begin VB.CommandButton Command4
Caption = "Stop"
Height = 315
Left = 120
TabIndex = 9
Top = 270
Width = 735
End
End
Begin VB.Frame Frame3
Caption = "Play Result"
Height = 675
Left = 0
TabIndex = 5
Top = 1560
Width = 1845
Begin VB.TextBox Text3
Height = 300
Left = 1050
TabIndex = 7
Top = 270
Width = 600
End
Begin VB.CommandButton Command1
Caption = "Play"
Height = 285
Left = 120
TabIndex = 6
Top = 270
Width = 675
End
End
Begin VB.Frame Frame2
Caption = "Open Result"
Height = 825
Left = 0
TabIndex = 2
Top = 720
Width = 1815
Begin VB.TextBox Text2
Height = 300
Left = 1050
TabIndex = 4
Top = 330
Width = 600
End
Begin VB.CommandButton Command3
Caption = "Open"
Height = 375
Left = 150
TabIndex = 3
Top = 270
Width = 675
End
End
Begin VB.Frame Frame1
Caption = "MP3PLAY OCX Ver:"
Height = 705
Left = 0
TabIndex = 0
Top = 0
Width = 1785
Begin VB.CommandButton Command13
Caption = "About"
Height = 405
Left = 960
TabIndex = 55
Top = 210
Width = 675
End
Begin VB.TextBox Text1
Height = 300
Left = 150
TabIndex = 1
Top = 270
Width = 510
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo error_handle
Text3.Text = Mp3Play1.Play
Exit Sub
error_handle:
Text21.Text = Error
Resume Next
End Sub
Private Sub Command10_Click()
If Command10.Caption = "off" Then
Mp3Play1.SetErrorMode 1
Command10.Caption = "on"
Else
Mp3Play1.SetErrorMode 0
Command10.Caption = "off"
End If
End Sub
Private Sub Command11_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 Command13_Click()
Mp3Play1.AboutBox
End Sub
Private Sub Command14_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 Command2_Click()
On Error GoTo error_handle
Text5.Text = Mp3Play1.Close
Exit Sub
error_handle:
Text21.Text = Error
Resume Next
End Sub
Private Sub Command3_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 Command4_Click()
On Error GoTo error_handle
Text4.Text = Mp3Play1.Stop
Exit Sub
error_handle:
Text21.Text = Error
Resume Next
End Sub
Private Sub Command5_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
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 VScroll1_Change()
End Sub