4

In one o f my projects using ASP.NET + C# I want to be able to dynamically create 30 seconds clip of MP3 files and add a fade in/out.

What library would you recommend?

I saw there are a lot, including:

http://www.alvas.net/alvas.audio.aspx

http://www.audiosoundeditor.com/

http://www.mitov.com/html/audiolab.html

Have you ever had to deal this? What library worked the best for you?

Anything will help including free/priced software that I could call from my C# application or any kind of C# compatible library.

marcgg
  • 65,020
  • 52
  • 178
  • 231

4 Answers4

4

I ended up using ffmpeg

marcgg
  • 65,020
  • 52
  • 178
  • 231
2

You could try NAudio - There would be a bit of programming required to do this but basically it would be along the lines of using NAudio to decode the MP3 first. Then passing the wave file to fade in (turn up the volume) at the time required and fade out (turn down the volume) when required. If your going to pass this to a client in a format other than wave you would then need to re-encode this file.

Sebastian Gray
  • 2,590
  • 3
  • 26
  • 36
1

You can use winmm.dll library.

RG.
  • 123
  • 6
  • do you have more information regarding this? – marcgg May 28 '09 at 20:18
  • Take a look -> http://www.codeproject.com/KB/audio-video/Audio_Player__with_Winmm.aspx Regards – RG. May 29 '09 at 15:16
  • Can this do fading/croping ? It doesn't look like it – marcgg Jun 01 '09 at 16:22
  • This is the link to the reference guide: http://www.webtropy.com/articles/art9-2.asp?lib=winmm.dll If you can adapt this to your needs,it's ok... But you must write some code, to control volume and time to play. Regards, RG – RG. Jun 01 '09 at 17:25
1

There is a better option, that would be the BASS Library. http://un4seen.com/bass.html it has a dedicated forum and does DSP like fade/compressor/EQ, etc. Plus you can read a bunch of different audio formats. It has C# and vb.net support.

Rick Rat
  • 1,732
  • 1
  • 16
  • 32