// receiver
if (dir<=0 && audiofile_out!=null)
{ printLog("new audio receiver on "+local_port,LogLevel.MEDIUM);
File file=new File(audiofile_out);
FileOutputStream output_stream=new FileOutputStream(file);
receiver=new RtpStreamReceiver(output_stream,socket);
}
else
if (dir<=0)
{ printLog("new audio receiver on "+local_port,LogLevel.MEDIUM);
//audio_output=new AudioOutput();
AudioFormat format=new AudioFormat(codec,sample_rate,8*sample_size,1,sample_size,sample_rate,big_endian);
audio_output=new AudioOutput(format);
receiver=new RtpStreamReceiver(audio_output.getOuputStream(),socket);
}
}
catch (Exception e) { printException(e,LogLevel.HIGH); }
}