|
|
|
Click here to copy the following block | Private Type MP3TagInfo tag As String * 3 title As String * 30 artist As String * 30 album As String * 30 year As String * 4 comment As String * 30 genre As String * 1 End Type
Function GetMP3Info(ByVal sFileName As String) As String() Dim mp3info As MP3TagInfo Dim infoRet(5) As String On Error Resume Next Open sFileName For Binary As #1 With mp3info Get #1, FileLen(sFileName) - 127, .tag If Not .tag = "TAG" Then Close #1 Exit Function End If Get #1, , .title Get #1, , .artist Get #1, , .album Get #1, , .year Get #1, , .comment Get #1, , .genre Close #1 End With infoRet(0) = Trim$(mp3info.title) infoRet(1) = Trim$(mp3info.artist) infoRet(2) = Trim$(mp3info.album) infoRet(3) = Trim$(mp3info.year) infoRet(4) = Trim$(mp3info.comment) infoRet(5) = CInt(Asc(Trim$(mp3info.genre))) - 1 GetMP3Info = infoRet End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
 |

|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|