dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Search | Go
Wiki > Main > SummerOfCode > SummerOfCode2009 > WavpackHybridSupport

Rockbox Support for Wavpack Hybrid Compression

Wavpack Hybrid Compression

The Wavpack audio codec supports an unusual "hybrid" compression mode. In this mode, a traditional lossy file is complemented by a "correction" file. When the two are decoded together, the original input bitstream can be recreated exactly. The lossy file may also be decoded on its own.

Rockbox currently handles lossy files but ignores the correction files.


  • Correctly decode hybrid files on a PC with Rockbox code (complete and verified for stereo files)
  • Implement support for buffering two (or more) files in a codec-independent manner (working with bugs)
  • Ensure real-time decoding on a Rockbox target (decoding but not real time on target)
  • Implement seeking in hybrid files with correction info present (imprecise short-range seeking works)
  • Add support for and check more obscure formats, like hybrid mono lossless and old-style hybrid shaping code (mono lossless support complete)

Useful Info

Wavpack spec description: here. Wavpack file format: here.

Current Status

Decoding of stereo hybrid lossless files functions off-target with a patch at . This does NOT run on a device; use to run the codec!

A patch enabling playback on iPod targets and in the sim is at but does not yet run in real time.
r5 - 17 Aug 2009 - 19:39:36 - BryanJacobs

Copyright by the contributing authors.