Looking for a simple MP3 library for C# [closed]
Asked Answered
V

2

3

I'm writing a larger project and a part of the project is playing MP3 files. Nothing fancy, just playing files from a playlist, start/stop, next/previous (can be done outside the library), fast forward/rewind. I'm looking for a (free) library, or any other method of doing that. Relying on an external player is not an option.

Veiling answered 16/12, 2011 at 9:17 Comment(2)
Keep in mind that MP3 is patented by Fraunhofer, so if you want to use it in a commercial application you will have to pay licensing fees. See: en.wikipedia.org/wiki/MP3#Licensing_and_patent_issuesKonstantin
If you use this class it will rely on MediaPlayer, can you explain why that's not an option? msdn.microsoft.com/en-us/library/…Overall
F
2

Bass Audio Library is one option.

Check out SDL.NET http://cs-sdl.sourceforge.net/ It's a library and has ways to play music.

NAudio is an open source .NET audio library that can play back WAV files, using ACM codecs installed on your computer for decompression purposes. It also has preliminary support for MP3 file playback (works good with CBR, not always so reliably with VBR). It can't do WMA and OGG yet though.

Frontiersman answered 16/12, 2011 at 9:24 Comment(1)
the problems with VBR in NAudio have been fixed in latest codeEvangelin
U
3

You can find a very simple C# library that plays MP3 audio files at:

A Simple C# Player MP3 with NAudio

The library have the following functionality:

  • Full control over the implementation of the audio file (load, play, stop and pause)
  • Volume control audio level and balance of sound.
  • Indication of the execution time
Ultimogeniture answered 21/10, 2012 at 12:33 Comment(0)
F
2

Bass Audio Library is one option.

Check out SDL.NET http://cs-sdl.sourceforge.net/ It's a library and has ways to play music.

NAudio is an open source .NET audio library that can play back WAV files, using ACM codecs installed on your computer for decompression purposes. It also has preliminary support for MP3 file playback (works good with CBR, not always so reliably with VBR). It can't do WMA and OGG yet though.

Frontiersman answered 16/12, 2011 at 9:24 Comment(1)
the problems with VBR in NAudio have been fixed in latest codeEvangelin

© 2022 - 2024 — McMap. All rights reserved.