/** call-seq: read_use() -> int Returns: the number of read-subscriptions on the port */ static VALUE wrap_snd_seq_port_info_get_read_use(VALUE v_port_info) { snd_seq_port_info_t *port_info; Data_Get_Struct(v_port_info, snd_seq_port_info_t, port_info); return INT2NUM(snd_seq_port_info_get_read_use(port_info)); }
/* * Class: org_tritonus_lowlevel_alsa_AlsaSeqPortInfo * Method: getReadUse * Signature: ()I */ JNIEXPORT jint JNICALL Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getReadUse (JNIEnv* env, jobject obj) { snd_seq_port_info_t* handle; int nReturn; if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getReadUse(): begin\n"); } handle = getHandle(env, obj); nReturn = snd_seq_port_info_get_read_use(handle); if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getReadUse(): end\n"); } return nReturn; }