Skip to content

Commit 8abfb77

Browse files
committed
Don't attempt to allocate 1 GB RAM on ARM platforms
This leaves it at the default size of 1 MB.
1 parent fb86a8a commit 8abfb77

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

-16 Bytes
Binary file not shown.

src/cpp/processing_sound_MethClaInterface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ JNIEXPORT jint JNICALL Java_processing_sound_MethClaInterface_engineNew (JNIEnv
7474
Methcla::EngineOptions options;
7575
options.audioDriver.bufferSize = bufferSize;
7676
options.audioDriver.numInputs = 2;
77+
#ifndef __arm__
7778
options.realtimeMemorySize = 1024 * 1024 * 1024;
79+
#endif
7880
options.maxNumNodes = 1024 * 40;
7981
options.maxNumAudioBuses = 512;
8082
options.addLibrary(methcla_plugins_sine)

0 commit comments

Comments
 (0)