sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.07k stars 186 forks source link

Fix compilation for Teensys #160

Closed tomcombriat closed 1 year ago

tomcombriat commented 1 year ago

As said in #159 , Teensy would not compile on static inline MonoOutput fromNBit if the sample type is a plain int (which is actually the default audio type).

This fixes this problem but I'll wait for a go from @tfry-git to merge this one as I am not sure that multiplying the overloads is actually the good solution.

As for now (without this PR), the example in #159 does not compile on 32bits platforms, but works on AVR.

Best, Tom