Yet another audio format convertion library
#include <system_error>
#include "auconv/file.h"
int main(int argc, char* argv[]) {
std::error_code err;
auconv::File file;
file.Open("/path/to/some/file.mp3", err);
if (err) {
return 1;
}
file.Export("/path/to/new/file.wav", auconv::Format::kWav, err);
if (err) {
return 1;
}
return 0;
}
This project uses libraries from the FFmpeg project
licensed under the
LGPLv2.1.
On OSX, The install target creates auconv.framework
which contains the shared
version of FFmpeg libraries and a zipped file containing
the sources, as requested by the legal information found
here.
The auconverter
target is a command line tool to use the auconv
library.
See src/auconverter/main.cc
for more details