mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Let the mixer functions accumulate the intermediate results into a larger size variable and then clamp to the final precission. This avoids distortions because of intermediate clamping. Although the access pattern of the reads are no longer sequential, the writes are sequential and we don't need to read intermediate values. Together with the avoided clamping this is probably faster overall. Add a unit test for the various cases. |
||
|---|---|---|
| .. | ||
| audiomixer.c | ||
| meson.build | ||
| mix-ops-avx.c | ||
| mix-ops-c.c | ||
| mix-ops-sse.c | ||
| mix-ops-sse2.c | ||
| mix-ops.c | ||
| mix-ops.h | ||
| mixer-dsp.c | ||
| plugin.c | ||
| test-mix-ops.c | ||