Cross-platform silk codec wrap library depends on ploverlake/silk.
Linux/Unix like
# clone
$ git clone https://github.com/KonataDev/libSilkCodec --recurse-submodules
$ cd libSilkCodec
# just make it
$ cmake .&& make -j8
# or
$ chmod +x build.sh
$ ./build.shWindows
# make sure you have# installed the Visual Studio# clone> git clone https://github.com/KonataDev/libSilkCodec --recurse-submodules
>cd libSilkCodec
# make it> cmake .> msbuild SilkCodec.sln
# or# double click the `build.bat`// Decode silk to pcmret=silkDecode(data, dataLen, 24000, codecCallback, NULL);
if(!ret) return0xDEADC0DE;
// Encode pcm to silkret=silkEncode(data, dataLen, 24000, codecCallback, NULL);
if(!ret) return0xDEADC0DE;
// Decode or Encode callbackvoidcodecCallback(void*userdata, unsigned char*p, intlen) {
writeData(p, len);
}- Callback with userdata
- Static library
- ploverlake/silk offer the original SILK source code.
licensed under MIT with ❤.