// sender
if (dir>=0)
{ printLog("new audio sender to "+remote_addr+":"+remote_port,LogLevel.MEDIUM);
//audio_input=new AudioInput();
AudioFormat format=new AudioFormat(codec,sample_rate,8*sample_size,1,sample_size,sample_rate,big_endian);
audio_input=new AudioInput(format);
//sender=new RtpStreamSender(audio_input.getInputStream(),false,payload_type,frame_rate,frame_size,socket,remote_addr,remote_port);
sender=new RtpStreamSender(audio_input.getInputStream(),true,payload_type,frame_rate,frame_size,socket,remote_addr,remote_port);
sender.setSyncAdj(2);
}
// receiver