libsndfile / libsamplerate

An audio Sample Rate Conversion library
http://libsndfile.github.io/libsamplerate/
BSD 2-Clause "Simplified" License
616 stars 169 forks source link

src_sinc.c: change SHIFT_BITS sanity check into compile time assert #124

Closed sezero closed 3 years ago

sezero commented 3 years ago

I have been sitting on the following patch for quite some time, don't know if it's acceptable for mainstream: https://github.com/sezero/libsamplerate/commit/1ed2bb846cf6223ca0c41bcef458aef530fcf042 If it is, I can make it into a PR here.

evpobr commented 3 years ago

I have been sitting on the following patch for quite some time, don't know if it's acceptable for mainstream: sezero@1ed2bb8 If it is, I can make it into a PR here.

Sorry, C99 only, thinking about C11.