csoundEvaluateCode function
Implementation
double csoundEvaluateCode(String code)
{
double res = -1;
Pointer<Utf8> ptr = StringUtf8Pointer(code).toNativeUtf8();
if(Platform.isAndroid) {
Pointer<Void> csound = csoundAndroidCreate();
res = csoundAndroidEvalCode(csound, ptr);
} else {
Pointer<Void> csound = csoundCreate(nullptr);
res = csoundEvalCode(csound, ptr);
}
malloc.free(ptr);
return res;
}