void SCProcess::makeSynth() { if (world->mRunning) { OSCMessages messages; small_scpacket packet; size_t messageSize = messages.createSynthMessage(&packet, synthName); World_SendPacket(world,messageSize, (char*)packet.buf, null_reply_func); } }
extern "C" void scsynth_android_makeSynth(JNIEnv* env, jobject obj, jstring theName){ if (world->mRunning){ jboolean isCopy; const char* synthName = env->GetStringUTFChars(theName, &isCopy); scprintf("scsynth_android_makeSynth(%s)\n", synthName); OSCMessages messages; small_scpacket packet; size_t messageSize = messages.createSynthMessage(&packet, synthName); World_SendPacket(world,messageSize, (char*)packet.buf, null_reply_func); env->ReleaseStringUTFChars(theName, synthName); }else{ scprintf("scsynth_android_makeSynth: not running!\n"); } }