final OSCBundle defBndl = new OSCBundle();
for( int i = 0, k = 0; i < collActiveClients.size(); i++ ) {
final Client mc = (Client) collActiveClients.get( i );
if( mc.task ) numTask++;
meterBangBndl.addPacket( new OSCMessage( "/n_set", new Object[] {
new Integer( mc.g.getNodeID() ), "t_trig", new Integer( 1 )}));
cgetnArgs[ k++ ] = new Integer( mc.ctrlBus.getIndex() );
cgetnArgs[ k++ ] = new Integer( mc.ctrlBus.getNumChannels() );
if( mc.synthDef ) {
final int numChannels = mc.monoSum ? mc.srcChans.length : 1;
if( numChannels > 0 ) {
final Object key = new Integer( numChannels );
if( !defSet.contains( key )) {
try {
defBndl.addPacket( createDef( numChannels ).recvMsg() );
defSet.add( key );
}
catch( IOException e1 ) {
printError( "resortClients", e1 );
}
}
}
}
}
meterBangBndl.addPacket( new OSCMessage( "/c_getn", cgetnArgs ));
try {
if( defBndl.getPacketCount() > 0 ) {
server.sync( defBndl, 4f );
}