From: Rib R. <ri...@gm...> - 2005-05-13 17:24:06
|
That could be a possibility. I think what we really need though is a way for drivers to start receiving messages as they come in. For example, some synths (including the motif for some things) use a 2-way communication protocol to transfer data. I don't think this type of thing is currently supported by JSynthLib. On 5/11/05, Joe Emenaker <jo...@em...> wrote: > Joachim Backhaus wrote: >=20 > >>Is there a > >>way to do this? > >> > >> > >Yes, > > > >use > >Thread.sleep > >as you can see in my QuasimidiQuasarSingleDriver. > > > > > Well, I was hoping for something a little better than Thread.sleep. >=20 > Thread.sleep requires a try/catch block, and it also requires you to > wait *longer* than the time needed to transmit, in order to make sure > you don't accidentally start the next transmission too soon. >=20 > Does anybody see any value in a method like: >=20 > sendAndWait(SysexHandler h, int count, int timeout) >=20 > where the message would be sent, and wouldn't return until "count" new > sysex messages had been received or "timeout" seconds (or milliseconds) > had elapsed. If the timeout is reached, an exception would be thrown. >=20 > - Joe >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7393&alloc_id=3D16281&op=3Dclick > _______________________________________________ > Jsynthlib-devel mailing list > Jsy...@li... > https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel > |