Hi, sorry for this newbie question, but i'm having serious trouble using the alsa lib 0.9.0beta8. After updating the code of my sequencer software from lib 0.5.8 api to 0.9.0 ,i simply can't start the queue.
#cat /proc/asound/seq/queues queue 0: [Queue-0] owned by client : 128 lock status : Locked queued time events : 0 queued tick events : 0 timer state : Stopped timer PPQ : 480 current tempo : 428571 current BPM : 140 current time : 0.000000000 s current tick : 0 #cat /proc/asound/seq/timer Timer for queue 0 : system timer Period time : 0.000000000 PPQ and tempo gets set correctly, but snd_seq_start_queue() seems to do nothing. I'm pretty sure i did code it almost exactly like in playmidi1.c, but playmidi1 works: #cat /proc/asound/seq/queues queue 0: [Queue-0] owned by client : 128 lock status : Locked queued time events : 0 queued tick events : 200 timer state : Running timer PPQ : 480 current tempo : 428571 current BPM : 140 current time : 3.030000000 s current tick : 3393 #cat /proc/asound/seq/timer Timer for queue 0 : system timer Period time : 0.010000000 That's what i do: snd_seq_open(&seq,"hw",SND_SEQ_OPEN_DUPLEX,0) snd_seq_nonblock(seq,0) client=snd_seq_client_id(seq) some snd_seq_create_simple_port(seq,NULL, SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_WRITE,SND_SEQ_PORT_TYPE_MIDI_GENERIC) queue=snd_seq_alloc_queue(seq) some snd_seq_connect_to() and snd_seq_connect_from() snd_seq_set_client_pool_output(seq,POOL_OUTPUT) snd_seq_set_client_pool_input(seq,POOL_INPUT) snd_seq_set_client_pool_output_room(seq,POOL_OUTROOM) snd_seq_get_queue_tempo(seq,queue,tempo) snd_seq_queue_tempo_set_ppq(tempo,480) snd_seq_queue_tempo_set_tempo(tempo,60000000000/140) snd_seq_set_queue_tempo(seq,queue,tempo) snd_seq_start_queue(seq,queue,NULL) None of these calls fail. I have been thinking about initializing the timer, but playmidi1 also does not do this. So, what should i do? Cancel our gig in japan next weekend? Thanks in advance for any help. Stef(an). _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel