Skip to content
Snippets Groups Projects
Verified Commit 41271c8d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix mednafen patch

parent 87fe6331
No related branches found
No related tags found
No related merge requests found
diff -ruwN source-old/include/mednafen/sound/SwiftResampler.cpp source/include/mednafen/sound/SwiftResampler.cpp
--- source-old/include/mednafen/sound/SwiftResampler.cpp 2022-01-18 14:16:23.000000000 -0700
+++ source/include/mednafen/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);
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment