From 6cc68ad1da8b675ce5b9931463754a1e21a429fa Mon Sep 17 00:00:00 2001 From: wirsing Date: Wed, 24 Sep 2014 18:46:45 -0700 Subject: [PATCH] attempt to fix 32bit load library problem with little success. --- .../processing/sound/MethClaInterface.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/java/libraries/sound/src/processing/sound/MethClaInterface.java b/java/libraries/sound/src/processing/sound/MethClaInterface.java index e1a2129c7..464a8f5db 100644 --- a/java/libraries/sound/src/processing/sound/MethClaInterface.java +++ b/java/libraries/sound/src/processing/sound/MethClaInterface.java @@ -9,11 +9,21 @@ public class MethClaInterface String arch = System.getProperty("os.arch"); if (osName.startsWith("Win")){ - System.loadLibrary("LIBWINPTHREAD-1"); - System.loadLibrary("LIBSNDFILE-1"); - System.loadLibrary("LIBMPG123-0"); - System.loadLibrary("LIBMETHCLA"); - System.loadLibrary("LIBMETHCLAINTERFACE"); + if (arch.equals("x86")){ + System.loadLibrary("LIBWINPTHREAD-1"); + System.loadLibrary("LIBSNDFILE-1"); + System.loadLibrary("LIBGCC_S_SJLJ-1"); + System.loadLibrary("LIBMPG123-0"); + System.loadLibrary("LIBMETHCLA"); + System.loadLibrary("LIBMETHCLAINTERFACE"); + } + else { + System.loadLibrary("LIBWINPTHREAD-1"); + System.loadLibrary("LIBSNDFILE-1"); + System.loadLibrary("LIBMPG123-0"); + System.loadLibrary("LIBMETHCLA"); + System.loadLibrary("LIBMETHCLAINTERFACE"); + } } else if (osName.startsWith("Mac")){ System.loadLibrary("MethClaInterface");