mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 10:51:25 -10:00
Each resampler allocates an input buffer and an output buffer. Since we create ~100 audio stream objects (1 per `sfx_MISC` effect), the memory cost of these buffers adds up. Avoids creating a resampler when the audio sampler rate matches the output sample rate. This is mostly the case when the output sample rate is 22050.