Programmatically convert WAV

Posted by kaykun on Stack Overflow See other posts from Stack Overflow or by kaykun
Published on 2010-05-18T21:55:02Z Indexed on 2010/05/18 22:00 UTC
Read the original article Hit count: 452

Filed under:
|

Hi, I'm writing a file compressor utility in C++ that I want support for PCM WAV files, however I want to keep it in PCM encoding and just convert it to a lower sample rate and change it from stereo to mono if applicable to yield a lower file size.

I understand the WAV file header, however I have no experience or knowledge of the actual sound data works. So my question is, would it be relatively easy to programmatically manipulate the "data" sub-chunk in a WAV file to convert it to another sample rate and change the channel number, or would I be much better off using an existing library for it? If it is, then how would it be done? Thanks in advance.

© Stack Overflow or respective owner

Related posts about c++

Related posts about wav