by Thomas Grimshaw (2 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
This code will open an OGG Vorbis media file (www.vorbis.com) and extract any tag information contained in it. This code is pure VB, no DLL calls, no OCX's.
Inputs
Filename.
Assumes
All you need is the BAS file. Then simply define a variable as a VorbisTag:
dim p as VorbisTag
Then you load the data into the variable..
p=GetTag(Filename)
Then you can extract it like this:
Title=p.title
Magic, eh?
Code Returns
Title, Artist, Album, Genre, Track Number, Year, Encoded Using tags.
Side Effects
Side effects? Yeah, you may grow long pointy ears if you use this code.