Implement portable LA sample packing and unpacking.