dir=direction;
// sender
if (dir>=0 && audiofile_in!=null && audiofile_in.equals(JAudioLauncher.TONE))
{ printLog("new audio sender to "+remote_addr+":"+remote_port,LogLevel.MEDIUM);
printLog("Tone generator: "+tone_freq+" Hz");
tone=new ToneInputStream(tone_freq,tone_amp,sample_rate,sample_size,ToneInputStream.PCM_LINEAR_UNSIGNED,big_endian);
sender=new RtpStreamSender(tone,true,payload_type,frame_rate,frame_size,socket,remote_addr,remote_port);
}
else
if (dir>=0 && audiofile_in!=null)
{ printLog("new audio sender to "+remote_addr+":"+remote_port,LogLevel.MEDIUM);