Libsac
A reference implementation of the SAC (Simple Audio Compression) codec.
Install / Use
/learn @mbitsnbites/LibsacREADME
⚠️ This repository has moved to: https://gitlab.com/mbitsnbites/libsac
libsac
This is a reference implementation of the Simple Audio Compression (SAC) compression algorithms (4-bit and 8-bit DDPCM).
A simple conversion tool is included that enables conversion between SAC and WAVE format files.
The library is written in C++, but the API is plain C.
IMPORTANT!
This is experimental code. The library API will most likely change.
Building
To build the library and the conversion tool, use cmake. E.g:
$ mkdir build && cd build
$ cmake ../src
$ cmake --build .
A note on OpenMP
The default is for libsac to use OpenMP, which requires that you enable OpenMP
when linking to the library (e.g. using -fopenmp for gcc/g++), otherwise you
may get linking errors such as undefined reference to 'omp_get_num_threads'.
License
This library is released under the zlib/libpng license:
Copyright (c) 2014 Marcus Geelnard
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
