OGG Wrapper based on CodeProject solution by Oso Oluwafemi Ebenezer. It reduces OGG encoding/decoding to just two lines of code.
- Wav Header logic is replaced and works well.
- Multi processing is removed for personal needs.
- File names are improved.
oggHelper h;
h.decode(infilename, outfilename);
oggHelper h;
EncodeSetting es; /* add custom settings here if you want */
VorbisComment ivc; /* set vorbis comments here if you want */
h.encode(infilename, outfilename, es, ivc);
brew install libogg
brew install libvorbis
cd examples
clang++ oggDecoder.cpp ../src/wavHeader.cpp ../src/oggHelper.cpp ../src/vorbisSettings.cpp -I ../src -o oggDecoder -lvorbis -logg -lvorbisenc -lvorbisfile -std=c++11
./oggDecoder vantage600_-_F_KING_BOUNCE.ogg vantage600_-_F_KING_BOUNCE.wav
cd examples
clang++ oggEncoder.cpp ../src/wavHeader.cpp ../src/oggHelper.cpp ../src/vorbisSettings.cpp -I ../src -o oggEncoder -lvorbis -logg -lvorbisenc -lvorbisfile -std=c++11
./oggEncoder vantage600_-_F_KING_BOUNCE.wav vantage600_-_F_KING_BOUNCE_ENCODED.ogg
Audio file F*KING BOUNCE by vantage600. Licensed under a Creative Commons Attribution (3.0) license.