GeezerVison is showing github.com — attempt to fix 32bit load library problem with little success. · Dreadchild/processing@c49a9d9
File tree
Expand file treeCollapse file tree
Open diff view settings
java/libraries/sound/src/processing/sound
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: java/libraries/sound/src/processing/sound/MethClaInterface.java +15-5Lines changed: 15 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,11 +9,21 @@ public class MethClaInterface |
9 | 9 | String arch = System.getProperty("os.arch"); |
10 | 10 |
|
11 | 11 | if (osName.startsWith("Win")){ |
12 | | - System.loadLibrary("LIBWINPTHREAD-1"); |
13 | | - System.loadLibrary("LIBSNDFILE-1"); |
14 | | - System.loadLibrary("LIBMPG123-0"); |
15 | | - System.loadLibrary("LIBMETHCLA"); |
16 | | - System.loadLibrary("LIBMETHCLAINTERFACE"); |
| 12 | + if (arch.equals("x86")){ |
| 13 | + System.loadLibrary("LIBWINPTHREAD-1"); |
| 14 | + System.loadLibrary("LIBSNDFILE-1"); |
| 15 | + System.loadLibrary("LIBGCC_S_SJLJ-1"); |
| 16 | + System.loadLibrary("LIBMPG123-0"); |
| 17 | + System.loadLibrary("LIBMETHCLA"); |
| 18 | + System.loadLibrary("LIBMETHCLAINTERFACE"); |
| 19 | + } |
| 20 | + else { |
| 21 | + System.loadLibrary("LIBWINPTHREAD-1"); |
| 22 | + System.loadLibrary("LIBSNDFILE-1"); |
| 23 | + System.loadLibrary("LIBMPG123-0"); |
| 24 | + System.loadLibrary("LIBMETHCLA"); |
| 25 | + System.loadLibrary("LIBMETHCLAINTERFACE"); |
| 26 | + } |
17 | 27 | } |
18 | 28 | else if (osName.startsWith("Mac")){ |
19 | 29 | System.loadLibrary("MethClaInterface"); |
|