/** call-seq: midi_channels() -> int Returns: the number of channels supported by this port. Normal ports will return 16 */ static VALUE wrap_snd_seq_port_info_get_midi_channels(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_midi_channels(port_info)); }
/* * Class: org_tritonus_lowlevel_alsa_AlsaSeqPortInfo * Method: getMidiChannels * Signature: ()I */ JNIEXPORT jint JNICALL Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getMidiChannels (JNIEnv* env, jobject obj) { snd_seq_port_info_t* handle; int nReturn; if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getMidiChannels(): begin\n"); } handle = getHandle(env, obj); nReturn = snd_seq_port_info_get_midi_channels(handle); if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaSeqPortInfo_getMidiChannels(): end\n"); } return nReturn; }