Sonarc

Sonarc is a lossless audio compression format by Richard P. Sprague and published by the company Speech Compression. The documentation accompanying v2.1i (the latest known version of the software) indicates a copyright date of 1994. This documentation further states, "Sonarc is now being used as an installation utility in PC titles published by Interplay, Origin, and The Software Toolworks, among others."

The algorithm operates on 8- or 16-bit PCM samples in either mono or stereo configurations. It typically achieves 2:1 to 3:1 compression ratios for suitable audio, while falling back to an uncompressed mode for data which falls outside of its coding model.

Custom Container Format

WAV Format

Sonarc files have the extension .SNC. However, the files are just standard Microsoft Wave audio files with a codec ID of 0x0021. The 'data' chunk contains the total amount of compressed bytes. The next 4 bytes represent the total number of decompressed bytes. After this is a sequence of frames.

Frame Format

There are at least 2 modes that Sonarc can use to compress audio information: Compressed and uncompressed. The details of the compression format are unknown. However, like most (all?) lossless compression algorithms, Sonarc includes a fallback mode which encodes the data raw. The size of an uncompressed chunk is predictably calculate as (frame size + 28).