|
|
#1181 |
|
嗚呼
|
testicle
|
|
|
|
|
#1182 |
|
FFR Player
|
You suck at this game, Moogy.
__________________
C is for Charisma, it's why people think I'm great! I make my friends all laugh and smile and never want to hate! |
|
|
|
|
#1183 |
|
Summer!!
|
starting from soup
poop
__________________
|
|
|
|
|
#1184 |
|
FFR Player
Join Date: Apr 2003
Posts: 30
|
puberty
|
|
|
|
|
#1185 |
|
FFR Player
|
Public Shared Function GetAttributes( _
ByVal filename As String) As MusicFileInfo Dim mfi As New MusicFileInfo() Dim editor As IWMMetadataEditor Dim headerInfo As IWMHeaderInfo3 Dim uHR As UInt32 Dim hr As Int32 uHR = WMFSDKFunctions.WMCreateEditor(editor) hr = Convert.ToInt32(uHR) If hr = 0 Then uHR = editor.Open(filename) hr = Convert.ToInt32(uHR) If hr = 0 Then headerInfo = DirectCast(editor, IWMHeaderInfo3) Dim value As Byte() Dim pType As WMT_ATTR_DATATYPE value = GetAttributeByName(headerInfo, _ "bitrate", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_DWORD Then mfi.Bitrate = Convert.ToInt64( _ BitConverter.ToUInt32(value, 0)) End If value = GetAttributeByName(headerInfo, _ "WM/AlbumTitle", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then 'ConvertToString is a function to convert 'from byte array to String, taking 'unicode encoding into account mfi.AlbumTitle = ConvertToString(value) End If value = GetAttributeByName(headerInfo, _ "WM/Genre", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Genre = ConvertToString(value) End If value = GetAttributeByName(headerInfo, _ "Author", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Authors = ConvertToString(value) End If value = GetAttributeByName(headerInfo, _ "WM/Track", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Track = CInt(ConvertToString(value)) End If value = GetAttributeByName(headerInfo, _ "Title", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Title = ConvertToString(value) End If value = GetAttributeByName(headerInfo, _ "WM/Year", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Year = CInt(ConvertToString(value)) End If value = GetAttributeByName(headerInfo, _ "WM/Composer", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_STRING Then mfi.Composers = ConvertToString(value) End If value = GetAttributeByName(headerInfo, _ "Duration", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_QWORD Then mfi.Duration = Convert.ToDecimal( _ BitConverter.ToUInt64(value, 0)) End If value = GetAttributeByName(headerInfo, _ "WM/MCDI", pType) If pType = WMT_ATTR_DATATYPE.WMT_TYPE_BINARY Then mfi.TOC = BitConverter.ToString(value, 0) End If End If End If Return mfi End Function Private Shared Function GetAttributeByName( _ ByVal headerInfo As IWMHeaderInfo3, _ ByVal name As String, _ ByRef pType As WMT_ATTR_DATATYPE) As Byte() Dim streamNum As UInt16 = Convert.ToUInt16(0) Dim uHR As UInt32 Dim valueLength As UInt16 Dim arrLength As Int32 Dim hr As Int32 uHR = headerInfo.GetAttributeByName( _ streamNum, name, pType, Nothing, valueLength) hr = Convert.ToInt32(uHR) If hr = 0 Then arrLength = Convert.ToInt32(valueLength) Dim value(arrLength) As Byte uHR = headerInfo.GetAttributeByName( _ streamNum, name, pType, value, valueLength) hr = Convert.ToInt32(uHR) If hr = 0 Then Return value End If End If End Function
__________________
|
|
|
|
|
#1186 |
|
FFR Player
Join Date: Apr 2003
Posts: 30
|
nevermind
|
|
|
|
|
#1187 |
|
Summer!!
|
dumbfounded
__________________
|
|
|
|
|
#1188 |
|
FFR Player
Join Date: Jan 2004
Age: 37
Posts: 270
|
Do'h!
|
|
|
|
|
#1189 |
|
Summer!!
|
hold on a second....
__________________
|
|
|
|
|
#1190 |
|
FFR Player
|
donkey turd
|
|
|
|
|
#1191 |
|
FFR Player
|
dog
|
|
|
|
|
#1192 |
|
FFR Player
|
sup guys lo
__________________
![]() ![]()
|
|
|
|
|
#1193 |
|
Boss of all bosses
|
oh wai...
__________________
I'm a figantic gaggot |
|
|
|
|
#1194 |
|
FFR Player
|
o i c
__________________
![]() ![]()
|
|
|
|
|
#1195 |
|
Boss of all bosses
|
CYC
__________________
I'm a figantic gaggot |
|
|
|
|
#1196 |
|
FFR Player
|
dud dont b frontin
__________________
![]() ![]()
|
|
|
|
|
#1197 |
|
FFR Player
|
no
|
|
|
|
|
#1198 |
|
Boss of all bosses
|
on
__________________
I'm a figantic gaggot |
|
|
|
|
#1199 |
|
FFR Player
|
no
|
|
|
|
|
#1200 |
|
Boss of all bosses
|
on
__________________
I'm a figantic gaggot |
|
|
![]() |
| Currently Active Users Viewing This Thread: 3 (0 members and 3 guests) | |
|
|