Sound Processing in C ++

I am looking for a library that can be used to manage audio files. Essentially, I would like to do the following:

  • Download MP3 / WAV file

  • Get a 15 second file clip

  • Overlay of another MP3 / WAV file on it

  • Rendering as a new MP3 / WAV file

+5
source share
5 answers

You can use any regular MP3 codec API to decode a stream, work with it and save it again. For example, you can use libLAME for this part.

, (, , , ) .

c - linux

0

MP3 , libsndfile - (LGPL) , WAV.

, ... A B (, , , ).

+3

libsox sox ( http://libsox.sourceforge.net/, - ), , API, . :

. ,

    *obuf++ = (*ibuf++ + *ibuf++)/2;

, 32 .

    *obuf++ = *ibuf++/2 + *ibuf++/2;

( ).

+1
0

Very good C ++ STK audio / synthesizer library . It downloads a lot of things and is under a license like BSD / MIT, that is, you can use it to develop commercial products. Wav is supported, but not MP3. For example, for MP3 you can use irrklang , which is free for non-commercial use (also MAD by underbit, used by human loads).

0
source

All Articles