mirror of
https://github.com/bctnry/nim-libsndfile
synced 2026-01-08 10:11:09 +00:00
No description
| examples | ||
| src | ||
| tests | ||
| libsndfile.nimble | ||
| LICENSE | ||
| README.md | ||
libsndfile
A C-style wrapper of libsndfile for Nim.
The original names are retained for the easy transition between C code and Nim code except for the following names because of my skill issue:
SNDFILE*in C isPSNDFILEin this library;sf_count_tin C isSFCountTin this library.SF_CHUNK_ITERATOR*in C isP_SF_CHUNK_ITERATORin this library.
In the original header, C enums are used as fields value, fields mask and normal enums at the same time at different part of the code. For this reasons some values are defined as enums and some values are simply defined as a distinct cint. Please refer to the source file for details.
Only the functions and types used in the source files in the examples folder have been personally tested. Proceed at your own risk.
Linking
- Dynamic linking: The default. e.g.
nim c listformats.nim - Static linking: Use the
SDNFILE_STATICflag. e.g.nim c -d:SNDFILE_STATIC --clib:sndfile listFormats.nim
License
MIT