Re: Direct Delivery of NoteOn events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Oct 25, 2006, at 4:25 AM, Clemens Ladisch wrote:

What is your program doing after this call? 

The function enters into an infinite while{} which bombards alsa with events.   No relevant variables go out of scope.

int i=1;
while (1) {
event.data.note.note = i;
snd_seq_event_output( our_parcel->seq, &event );
snd_seq_drain_output( our_parcel->seq );
printf("sleep\n");
sleep(1);
i++;
if (i > 127)
i = 1;
}

If you don't wait until the
event has been delivered, the queue with the events still in it will be
destroyed.

Hmmm...I'm not sure you what you mean here.  Is there a function i can call to block the thread until ALSA has delivered the events?  How exactly is the Queue destroyed?

thanks,
-paul santa clara

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux