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
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.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I ended up using ffmpeg
Method 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.
Method 3
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.
Method 4
You can use winmm.dll library.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0