Files
RedBear-OS/recipes/emulators/mednafen/redox.patch
T
vasilito 50b731f1b7 Red Bear OS — microkernel OS in Rust, based on Redox
Derivative of Redox OS (https://www.redox-os.org) adding:
- AMD GPU driver (amdgpu) via LinuxKPI compat layer
- ext4 filesystem support (ext4d scheme daemon)
- ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG)
- Custom branding (hostname, os-release, boot identity)

Build system is full upstream Redox with RBOS overlay in local/.
Patches for kernel, base, and relibc are symlinked from local/patches/
and protected from make clean/distclean. Custom recipes live in
local/recipes/ with symlinks into the recipes/ search path.

Build:  make all CONFIG_NAME=redbear-full
Sync:   ./local/scripts/sync-upstream.sh
2026-04-12 19:05:00 +01:00

14 lines
449 B
Diff

diff -ruwN source-old/src/sound/SwiftResampler.cpp source/src/sound/SwiftResampler.cpp
--- source-old/src/sound/SwiftResampler.cpp 2022-01-18 14:16:23.000000000 -0700
+++ source/src/sound/SwiftResampler.cpp 2022-12-16 20:01:02.263159230 -0700
@@ -608,6 +608,9 @@
if(hp_tc > 0)
{
+#ifndef M_E
+#define M_E 2.7182818284590452354
+#endif
double tdm = (pow(2.0 - pow(M_E, -1.0), 1.0 / (hp_tc * output_rate)) - 1.0);
//printf("%f\n", tdm);