[Live-devel] TaskScheduler for two different tasks

Ross Finlayson finlayson at live.com
Fri Sep 3 15:09:05 PDT 2004


At 11:28 AM 9/3/04, you wrote:
>I would like to develop application for sending and receiving audio over 
>RTP at
>the same time (XXXRTPSink and YYYYRTPSource). Can  i create two TaskSchedulers
>and two UsageEnvironments instances for these two different tasks in the same
>application and so run the both of task parallel ?

If the sending and receiving are completely independent of each other, then 
yes, you can do this.  If, however, they're related - e.g., because the 
audio that you're sending is the same audio (or a transcoding of the same 
audio) that you receive - then you can't do this.  Instead, just use a 
single TaskScheduler and UsageEnvironment (and thus event loop) for both.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list