VBGood網站全文搜索 Google

排序: 熱度 日期 標題, 方式 倒序 順序 VBGood首頁 - 代碼天地
評論:0, 閱讀:16256, 日期:2002-02-03 [多媒體] 這是另外一個DirectDraw的動畫示例(需要DX類型庫)
評論:0, 閱讀:17488, 日期:2001-04-09 [多媒體] 讓pc喇叭發聲(內含三個代碼)
評論:0, 閱讀:10240, 日期:2000-11-08 [多媒體] 獲得mp3文件的infomation
Working with MP3

Does your program need to work with MP3 files? Creating your own audio program or music library and need to automatically extract details such as the artist, track title and album? Perhaps you even need to overwrite such ID3 tags?

The winner of our SmartUI competition, MuchMetal shows us how with this neat class.

To get details of a particular MP3, firstly, set the Filename property. Then check that the isActive property is set to True, indicating you have referenced a valid MP3 file. Next, read the appropriate properties, such as Title, Artist, Album and Genre.

You can also change any of these properties, then save 慹m back to the original file with the SaveTag method.

To learn how to play MP3 files from within Visual Basic, check out this neat tutorial from our partner in code, VBWeb.co.uk.

Sample Code

Dim MP3 As New clsID3
MP3.Filename = "c:\ChrisRea.mp3"

If MP3.isActive = True Then
`Get ID3 information about MP3
MsgBox "MP3 Info:" & vbCrLf & vbCrLf & _
"Title:" & vbTab & MP3.Title & vbCrLf & _
"Artist:" & vbTab & MP3.Artist & vbCrLf & _
"Album:" & vbTab & MP3.Album & vbCrLf & _
"Year:" & vbTab & MP3.Year & vbCrLf & _
"Genre:" & vbTab & MP3.Genre & vbCrLf & _
"Comment:" & vbTab & MP3.Comment

`Change the ID3 information
MP3.Artist = "New Artist 2"
MP3.Title = "New Title 2"
MP3.Album = "Some Album 2"
MP3.Comment = "Created using clsID3 2"
MP3.Year = "2000"
MP3.Genre = 54

MP3.SaveTag `Saves the new ID3 information

Else `Error opening MP3 file
MsgBox "Invalid MP3 file"
End If

評論:0, 閱讀:13096, 日期:2000-11-21 [多媒體] 能夠得到特定的目錄路徑
評論:0, 閱讀:17757, 日期:2002-01-12 [多媒體] 類似星球大戰片頭的卷幕效果
評論:0, 閱讀:17021, 日期:2000-12-31 [多媒體] 類似強級解霸的播放軟件
評論:0, 閱讀:18286, 日期:2000-03-12 [多媒體] 類似于WinAmp的Mp3播放器。
評論:0, 閱讀:15257, 日期:2000-11-15 [多媒體] 著陸(lander)游戲 第二版
用VB寫的小游戲,程序注釋也寫的蠻多的,初學者應該看看。 這個代碼的第二版。
評論:0, 閱讀:13631, 日期:2001-01-21 [多媒體] 用 VB 實現新聞眼
影子原創,通過 Winsock 控件取得搜狐首頁的當天新聞,經過修改就可以成為一個非常完整的新聞眼程序,有文章、圖片、源程序、示例,該篇文章發表在 2001.01.15 第 03 期的軟件報上。
守车人游戏 广东11选5 同信证券如意理财平台 苹果股票 理财平台专属是什么意思 河北11选5 潍柴重机股票 股票行情 牛市快讯每天推送 股票涨跌跟什么有关系 投资回报高的理财产品 河北十一选五 印尼股票指数 私募基金配资是什么意思 快乐十分 安徽快三 北京赛车pk10 8波体育比分网