Click here to Skip to main content
Licence 
First Posted 12 Jul 2004
Views 25,559
Bookmarked 14 times

Read tags of .ogg files

By | 12 Jul 2004 | Article
A simple class that reads default tags of ogg vorbis files.

Introduction

This is a simple class that reads default tags (the ones suggested by xiph.org) and the common "COMMENT" tag used by WinAmp and other players and tag editors.

How it works

The code is enough documented to understand what it does, so take a look at it. Basically, it reads a groups of four bytes, converts them into string, and checks if a tag name starts with that four letters. If so, it reads the whole tag name and if it is a valid one, fills the correspondent string property with the tag value. Then it moves to the next byte...

Using the code

Simply add reference to oggReader.dll into your project and create a new instance of the class OggReader. The string parameter must be the absolute or relative path of the ogg file. Tags will be available as string properties.

JockerSoft.OggReader myOggReader = 
       new JockerSoft.OggReader("c:\temp\oggfile.ogg");

this.textBoxTitle.Text = myOggReader.Title;

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

JockerSoft



Italy Italy

Member


my website


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralFantastic Pinmember[ICR]9:42 3 Jul '06  
Generalgreat script - little bug PinsussSean1234123412:58 19 Aug '05  
GeneralRe: great script - little bug PinmemberJockerSoft19:09 19 Aug '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 13 Jul 2004
Article Copyright 2004 by JockerSoft
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid