RTAencoder use the new writePacket().