Split out common routines needed in the atrac1 decoder from atrac3.c to atrac.c.