PDA

View Full Version : Good fun


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;
}

}
}

Smelter
24th March 2007, 11:48
If you cant guess, Fire up winamp and connect to the server and watch.

Smelter
24th March 2007, 12:04
hmmm attachment error

These classes work both ways.IN ,Like the above sample and out, to multiple dnas as well.
http://saladbowlguitar.com/Crapshot.bmp