Hi, On Wed, May 11, 2005 at 12:35:38PM +0200, Reimar D?ffinger wrote:
On Wed, May 11, 2005 at 12:22:38PM +0200, Reimar D?ffinger wrote:
The most annoying thing is the order of the bytes in the bitstream: 3 2 1 0 7 6 5 4 11 10 9 8 etc...
I forgot to say that I also want to change this, by calling bswap on every dword, so that reading data at an arbitrary point is simple (as long as it's less that 26 bits). This means that on little endian when reading more than 8 bits at once another bswap will be necessary, but who cares *g* (it will be neccessary on at least on architecture anyway and this is easier to do. And why not once give be an advantage *g*)
I decided to not do that part after all... I attached a preview version of the new version. It does not support bigendian machines up to now, but mpc-in-avi seems to work nicely (though you waste up to 31 bits per frame), including seeking. You need to patch the musepack decoder lib, though, and that patch is a bit broken atm (i.e. it will probably work only with MPlayer). Greetings, Reimar Döffinger