Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any library functions to read as well as edit the header and data section of a mp3 file.

Does winmm support mp3 files also??

If yes what are the methods?

Plz help.

Thanks in advance for any useful help.
Posted

See here[^].
 
Share this answer
 
Comments
Be Yourself 19-Oct-10 3:41am    
Thanks but does winmm support these files?
Be Yourself 21-Oct-10 7:54am    
How can I know the starting of the first data frame of a mp3 file . And how to know the fields of ID3 tag?? How can I know if ID3 tag is included or not??
Code for reading MP3 files.
For more info u can Google or search about IDV tags
<pre lang="vb">
        imports system.io
        Dim mp As FileStream
        Dim Title(30) As Byte
        Dim Artist(30) As Byte
        Dim Album(30) As Byte
        Dim Year(4) As Byte
        Dim Comments(30) As Byte
        mp = New FileStream("File_name.mp3", FileMode.Open)
        mp.Seek(-125, SeekOrigin.End)
        mp.Read(Title, 0, 30)
        mp.Seek(-95, SeekOrigin.End)
        mp.Read(Artist, 0, 30)
        mp.Seek(-65, SeekOrigin.End)
        mp.Read(Album, 0, 30)
        mp.Seek(-35, SeekOrigin.End)
        mp.Read(Year, 0, 4)
        mp.Seek(-31, SeekOrigin.End)
        mp.Read(Comments, 0, 30)
        Dim TxtTitle As String = System.Text.Encoding.ASCII.GetString(Title)
        Dim TxtArtist As String = System.Text.Encoding.ASCII.GetString(Artist)
        Dim TxtAlbum As String = System.Text.Encoding.ASCII.GetString(Album)
        Dim TextComments As String = System.Text.Encoding.ASCII.GetString(Comments)

 
Share this answer
 
Comments
Be Yourself 19-Oct-10 13:30pm    
THANKS A LOT MAN I WILL SURE TRY THIS..
Archit9373284448 19-Oct-10 14:53pm    
no problem.... ;)
Be Yourself 21-Oct-10 7:54am    
How can I know the starting of the first data frame of a mp3 file .
And how to know the fields of ID3 tag??
How can I know if ID3 tag is included or not??
PLZ Help me Know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900