views:

533

answers:

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.

A: 

You can use winmm.dll

Regards RG

RG
do you have more information regarding this?
marcgg
Take a look ->http://www.codeproject.com/KB/audio-video/Audio_Player__with_Winmm.aspxRegards
RG
Can this do fading/croping ? It doesn't look like it
marcgg
This is the link to the reference guide: http://www.webtropy.com/articles/art9-2.asp?lib=winmm.dllIf 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
A: 

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 Ratayczak
Thanks. It looks nice, but it's really expensive!
marcgg
It's like $100 or less. not too bad. Plus it does a lot of cool sh#t!
Rick Ratayczak
If it's just for private use, the library is free. (Don't know if your project is commercial or not)
Olli
+1  A: 

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
+1  A: 

I ended up using ffmpeg

marcgg