Hello !<br><br>In my application (LiveMix - <a href="http://livemix.codingteam.net/">http://livemix.codingteam.net/</a>) I just implement the MIDI support.<br>To initialize the MIDI I do :<br>snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0);
<br>snd_seq_set_client_name(seq, "LiveMix");<br>m_iPort = snd_seq_create_simple_port(seq, "control", 0, SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_SOFTWARE | SND_SEQ_PORT_TYPE_APPLICATION);<br>
m_iMidi = snd_seq_create_simple_port(seq, "control", <br>                SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ | SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE, <br>                SND_SEQ_PORT_TYPE_APPLICATION);
<br><br>Than with patchage I connect the midi port to others port...<br><br>Than I want to know with port will be connected on witch other to reconnect it on other LiveMix run.<br><br>I sea the function :<br>int snd_seq_connect_from(snd_seq_t *seq, int my_port, int src_client, int src_port);
<br>int snd_seq_connect_to(snd_seq_t *seq, int my_port, int dest_client, int dest_port);<br>To do the connexion but I don't found not the function to know where I'm actually connected.<br><br>CU & thanks in advance.
<br>Stéphane<br><br clear="all"><br>-- <br>Stéphane Brunner<br>mail : <a href="mailto:stephane.brunner@gmail.com" target="_blank">stephane.brunner@gmail.com</a><br>messageries instantanées : <a href="mailto:stephane.brunner@gmail.com" target="_blank">
stephane.brunner@gmail.com
</a> (<a href="http://talk.google.com" target="_blank">http://talk.google.com</a>)<br>--------------------------------------<br><a href="http://www.ubuntu-fr.org" target="_blank">http://www.ubuntu-fr.org</a> - Distribution Linux
<br><a href="http://fr.wikipedia.org" target="_blank">
http://fr.wikipedia.org</a> - Encyclopédie communautaire<br><a href="http://mozilla-europe.org" target="_blank">http://mozilla-europe.org</a> - Navigateur internet / Client de messagerie<br><a href="http://framasoft.net" target="_blank">
http://framasoft.net
</a> - Annuaire de logiciel libre (gratuit)<br><a href="http://jeuxlibres.net" target="_blank">http://jeuxlibres.net</a> - Jeux Libres (gratuit)<br>--------------------------------------<br>Il existe 10 sortes de personnes : celles qui connaissent le binaire, et les autres.
<br>Si Microsoft inventait un truc qui plante pas, ce serait un clou.<br><br>Si un jour on te reproche que ton travail n'est pas un travail de professionnel, dis toi que :<br>Des amateurs ont construit l'arche de Noé, et des professionnels le Titanic.