codec = new AudioCodecRTSJ();
PeriodicParameters periodic = new PeriodicParameters(Configuration.AUDIOCODEC_PERIOD);
PriorityParameters prio = new PriorityParameters(Configuration.CODEC_PRIORITY);
RealtimeThread t = new RealtimeThread((SchedulingParameters)prio,
(ReleaseParameters)periodic,
null, null, null,
new Runnable() {
public void run() {
codec.run();
}
});
codec.setThread(t);
t.start();
}