Search code examples
c#mp3media-player

Err.. Duration of Song?


Possible Duplicate:
How to retrieve duration of MP3 in .NET?

I'm makin' a little mp3 player here and I've pretty much got everything covered. I would like to be able to display the duration of the song but am kinda confused as to go about doing so. I've searched around the net and have seen so many examples that seem so long which makes me wonder if there's an easier way to get the duration of a song?


Solution

  • You may be interested in Mp3Sharp. I haven't used it much, but I see functions such as BitsPerSample, which may be useful for what you're trying to accomplish.