Visual Basic / Sound / Working with MP3
Snippet details
ID: 403
Viewed: 1339
Added: 2002-08-19
Version:
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 'em 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.
to download this code in a class file-
http://www.vb-world.net/tips/clsid3.cls
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 'em 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.
to download this code in a class file-
http://www.vb-world.net/tips/clsid3.cls
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
| Snippet By: | Unknown |
| Declarations | |
| Code | |
| Highlight All | |
No Reviews to show
