Variable length blocks have always been in the WavPack specs but obviously haven't been tested much before now. I tested these files with Rockbox and Cowon and FFmpeg, but there still could be a problem with something (hmm, maybe I should test with the Java decoder...)
Once I had variable length blocks going, I had an idea for using them with the lossyWAV output (described here and here). WavPack becomes less efficient with shorter blocks because of the almost 100-byte overhead for each block, which is why it gets pretty bad (compared to other compressors) with blocks of only 512 samples. But, in the case of lossyWAV, consecutive blocks are likely to have the same redundancy (especially as the block length gets shorter) so I thought that if I could combine blocks of the same redundancy into longer blocks (but still reserve the ability to have an isolated short block if it was worth it) then I could have the best of both worlds. The new option to accomplish this is called --merge-blocks and is only available in the pure lossless mode and when you have specified a block granularity with --blocksize. It's possible to specify very small blocks (like 32 samples!) and still get very good results without even knowing what the native block size is on the lossyWAV file.
I have put a warning in this version about not using it for important stuff because it's a lot more modified than the previous alpha and I don't know if these variable length blocks are going to cause any trouble.
http://www.wavpack.com/files/wavpack442a2.zip
Thanks in advance for any testing or comments...
David
