Recently I needed to read the various audio file properties of a .ogg vorbis file for further processing. I wanted to be able to read these properties from managed C# code. I was not able to find a clear example online for doing this (even StackOverflow failed me). After a bit of scrounging online, I eventually arrived at a library that could do this: Vorbis .NET . Unfortunately, their documentation was dead and their example program error-ed out where I ran it, so I went ahead and started exploring it.
The relevant line of code needed was (after adding references to Vorbit .NET of course):
var x = OggVorbisDecoder.OggVorbisMemoryStream.LoadFromFile(_fullOggFilePath);.
This provided access to a VorbisInfo property which had the following attributes: