xcode - Concatenate .wav files in C++ -
how can i, using function, library, whatever have to, concatenate 2 .wav files? input should absolute paths, , output audio file created , placed (not played) somewhere, doesn't matter where.
i writing mac command line application in xcode 6.
the .wav
file format simple format, consisting of fixed header defines audio file's properties; namely endian-ness, number of channels, , sampling rate. documentation defined on intertubes.
off top of head don't recall if common library offers convenient way (it's worth looking through libsndfile's api documentation, fit bill).
in case, shouldn't tough read headers of both wav files, check format, , create output file. if both wav files have same endian-ness, number of channels, , sampling rate, procedure trivial, otherwise have resample/remix @ least 1 of files.
Comments
Post a Comment