devel/raylib: Switch to SDL backend, Fix high audio latency on FreeBSD (OSS backend)
SDL has better Gamepad Support.
On FreeBSD, raylib (via miniaudio) defaults to a massive buffer size
when using the OSS backend. My logs show a "Periods size" of 32768
samples, which creates a latency of ~680ms at 48kHz. This makes the
library unusable for real-time applications and games on FreeBSD.
Patch the bundled src/external/miniaudio.h to force a lower latency
specifically for the OSS driver. By setting the default period size to
10ms and the period count to 2, the latency is reduced to ~10ms without
audio dropouts.
PR: 294647 294627
Tested by: Chédotal Julien <rjdi@wanadoo.fr>
Sponsored by: UNIS Labs
Co-authored-by: Chédotal Julien <rjdi@wanadoo.fr>
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
MFH: 2026Q2
(cherry picked from commit 911cc855499b3a20e84f13c44104fead37734663)