sequencer client subscription problem
Hello All,
I have a small problem that I cant figure out. Basically, on startup I'm having my sequencer run through the alsa clients with snd_seq_query_next_client() and snd_seq_query_next_port(). I look for clients with SND_SEQ_PORT_CAP_SUBS_WRITE for output and SND_SEQ_PORT_CAP_SUBS_READ for input, and connect to them accordingly.
Now, perhaps the subscribe mechanism dosnt work the way I think it does...
my code works for my sblives midi input. But when vkeybd is running, its flags are set as follows:
[128: 0 Virtual Keyboard Virtual Keyboard] SND_SEQ_PORT_CAP_READSND_SEQ_PORT_CAP_SUBS_READ SND_SEQ_PORT_TYPE_MIDI_GENERIC SND_SEQ_PORT_TYPE_APPLICATION
then I open my own port with the flags :
[129: 6 seq24 seq24 in port]SND_SEQ_PORT_CAP_READSND_SEQ_PORT_CAP_NO_EXPORTSND_SEQ_PORT_TYPE_MIDI_GENERICSND_SEQ_PORT_TYPE_APPLICATION All other subscriptions work, but when I issue a snd_seq_connect_to() from the seq24 port to the vkey port, it fails.
do I need to do more to my port in order to subscribe to an applications port ?
Thanks!
.rob buse
----------------------------------------------------------
music + technology http://filter24.org
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
re: sequencer client subscription problem (nevermind)
sorry for the bandwidth, I just solved my problem. I didnt realize that you had to call snd_seq_connect_from(). In case anyone was wondering :) .rob
Quoted 29 lines
Hello All,
I have a small problem that I cant figure out. Basically, on startup I'm having my sequencer run through the alsa clients with
snd_seq_query_next_client()andsnd_seq_query_next_port(). I look for clients withSND_SEQ_PORT_CAP_SUBS_WRITEfor output andSND_SEQ_PORT_CAP_SUBS_READfor input, and connect to them accordingly.Now, perhaps the subscribe mechanism dosnt work the way I think it does...
my code works for my sblives midi input. But when vkeybd is running, its flags are set as follows:
[128: 0 Virtual Keyboard Virtual Keyboard]
SND_SEQ_PORT_CAP_READSND_SEQ_PORT_CAP_SUBS_READSND_SEQ_PORT_TYPE_MIDI_GENERICSND_SEQ_PORT_TYPE_APPLICATIONthen I open my own port with the flags :
[129: 6 seq24 seq24 in port]
SND_SEQ_PORT_CAP_READSND_SEQ_PORT_CAP_NO_EXPORTSND_SEQ_PORT_TYPE_MIDI_GENERICSND_SEQ_PORT_TYPE_APPLICATIONAll other subscriptions work, but when I issue asnd_seq_connect_to()from the seq24 port to the vkey port, it fails.
do I need to do more to my port in order to subscribe to an applications port ?
Quoted 8 lines
Thanks!
.rob buse----------------------------------------------------------
music + technology http://filter24.org
----------------------------------------------------------
music + technology http://filter24.org
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390