Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
78 stars 6 forks source link

Vectorized sound backends #59

Closed Dawoodoz closed 1 year ago

Dawoodoz commented 1 year ago

Using aligned memory in sound backends. The conversion from float to integer samples are vectorized, but the final packing into 16 bits is still done using scalar instructions, because simd.h does not have signed 16-bit integers implemented.

Sound engines using the old backend can either add ".getUnsafe()" on the safe pointer, or start vectorizing the sound engine using the added safety.