Skip to content

Cross-platform silk codec wrap library depends on ploverlake/silk.

License

Notifications You must be signed in to change notification settings

LagrangeDev/libSilkCodec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libSilkCodec

Cross-platform silk codec wrap library depends on ploverlake/silk.

Clone & Build

Linux/Unix like

  # clone
  $ git clone https://github.com/LagrangeDev/libSilkCodec --recurse-submodules
  $ cd libSilkCodec

  # just make it
  $ cmake . && make -j8

  # or
  $ chmod +x build.sh
  $ ./build.sh

Windows

  # make sure you have
  # installed the Visual Studio

  # clone
  > git clone https://github.com/LagrangeDev/libSilkCodec --recurse-submodules
  > cd libSilkCodec

  # make it
  > cmake .
  > msbuild SilkCodec.sln

  # or
  # double click the `build.bat`

Example

  // Decode silk to pcm
  ret = silkDecode(data, dataLen, 24000, codecCallback, NULL);
  if(!ret) return 0xDEADC0DE;

  // Encode pcm to silk
  ret = silkEncode(data, dataLen, 24000, codecCallback, NULL);
  if(!ret) return 0xDEADC0DE;

  // Decode or Encode callback
  void codecCallback(void* userdata, unsigned char* p, int len) {
    writeData(p, len);
  }

Todo

  • Callback with userdata
  • Static library

Credits

License

licensed under MIT with ❤.

About

Cross-platform silk codec wrap library depends on ploverlake/silk.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.3%
  • CMake 7.5%
  • Other 1.2%