Smelter
24th March 2007, 11:45
Start up nsvcap twice.
pick two vid devices.(I know you got two)
pick two aud devices. (I dont have two right now, but some of you do)
Uncheck the audio in second cap unless you have two audio cards.
Set the destinations to 66 and 80 (67 81)
Start the test app.
start default dnas server 8000(8001 changeme).
Start both nsvcaps, 80 first
Read the code and guess what will happen.
NSVp source("81");
NSVp source2("67");
NSV_Marshal sender;
for(;;){
source.FrameNo=0;
for
(;;)
{
sender.CastFrame (&source2);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if ((source.up.isSynchFrame()))break;
}
}
source.FrameNo=0;
for
(;;)
{
sender.CastFrame (&source);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if (source2.up.isSynchFrame())break;
}
}
}
pick two vid devices.(I know you got two)
pick two aud devices. (I dont have two right now, but some of you do)
Uncheck the audio in second cap unless you have two audio cards.
Set the destinations to 66 and 80 (67 81)
Start the test app.
start default dnas server 8000(8001 changeme).
Start both nsvcaps, 80 first
Read the code and guess what will happen.
NSVp source("81");
NSVp source2("67");
NSV_Marshal sender;
for(;;){
source.FrameNo=0;
for
(;;)
{
sender.CastFrame (&source2);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if ((source.up.isSynchFrame()))break;
}
}
source.FrameNo=0;
for
(;;)
{
sender.CastFrame (&source);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if (source2.up.isSynchFrame())break;
}
}
}