Looking for a simple MP3 library for C# [closed]

匆匆过客 提交于 2019-12-06 10:11:32

问题


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.


回答1:


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.




回答2:


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


来源:https://stackoverflow.com/questions/8532033/looking-for-a-simple-mp3-library-for-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!