Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reworked audio converter code.
This no longer uses a script to generate code for every possible type conversion or resampler. This caused a bloat in binary size and and compile times. Now we use a handful of more generic functions and assume staying in the CPU cache is the most important thing anyhow. This shrinks the size of the final build (in this case: macOS X amd64, -Os to optimize for size) by 15%. When compiling on a single core, build times drop by about 15% too (although the previous cost was largely hidden by multicore builds).
- Loading branch information
Showing
with
502 additions
and 17,378 deletions.
- +25 −19 src/audio/SDL_audio_c.h
- +262 −785 src/audio/SDL_audiocvt.c
- +215 −15,813 src/audio/SDL_audiotypecvt.c
- +0 −761 src/audio/sdlgenaudiocvt.pl
Oops, something went wrong.