JNIEXPORT jint JNICALL Java_org_puredata_core_PdBase_sendMidiByte (JNIEnv *env, jclass cls, jint port, jint value) { pthread_mutex_lock(&mutex); int err = libpd_midibyte(port, value); pthread_mutex_unlock(&mutex); return err; }
//---------------------------------------------------------- void PdBase::sendMidiByte(const int port, const int value) { libpd_midibyte(port, value); }
//---------------------------------------------------------- void PdBase::sendMidiByte(const int port, const int value) { _LOCK(); libpd_midibyte(port, value); _UNLOCK(); }