Klang Sample Media Files

One problem I have run into when creating Klang is the lack of good sample files to test parsing of various file formats. This section is an attempt to collect a number of sample files, of various formats, for others to use for testing. For each file, I will indicate how the file was created, and any special features that it has.

The sample files were created from scratch using various programs, and contain no copyrighted content and can be considered public domain. This section should grow as Klang becomes aware of new file and chunk types.

WAV File Samples

  • WAV Sample 1 - Uncompressed (PCM) WAV file; mono, 16-bit, 44100Hz. Contains only the simplest 16-byte 'fmt ' chunk, and the usual 'data' chunk.
  • WAV Sample 2 - Same as sample 1, except stereo, 8-bit and 22050Hz.
  • WAV Sample 3 - Same as sample 1, but encoded using 8-bit a-Law compression. The 'fmt ' chunk contains two extra bytes set to zero (the simplest WAVEFORMATEX structure) , and the file contains a 'fact' chunk (needed because this is a compressed format).
  • WAV Sample 4 - Same as sample 1, but using 32-bit sample data. Uses the full 40-byte WAVEFORMATEXTENSIBLE structure and a 'fact' chunk. [NOTE: There seems to be a bug in sox, such that some files with a FACT chunk contain 12 bytes of extra data at the end of the file, probably due to incorrect specification of the RIFF file size.]
  • WAV Sample 5 - Same as sample 1, but using 4 channels of sound. Uses 40-byte fmt chunk and fact chunk.
  • WAV Sample 6 - Same as sample 1, but contains Title and Artist metadata contained in a LIST chunk. Created using Audacity 1.3 Beta.
  • WAV Sample 7 - Same as sample 1, but with big-endian sample data. Parent chunk is RIFX instead of RIFF (not supported by most audio players).
  • WAV Sample 8 - Same as sample 1, but with an added iXML chunk (added manually using Klang). This iXML data does not necessarily apply to the file, but is included for demonstration only.

PNG File Samples

  • PNG Sample 1 - A simple color image created using Microsoft Paint. Includes sRGB, gAMA, and cHRM chunks.
  • PNG Sample 2 - PNG is the native file format for Adobe Fireworks, and this sample file created in Fireworks contains a large number of private Fireworks-specific chunks (prVW, mkBT, etc.). It also contains tEXt and iTXt chunks.
  • PNG Sample 3 - The same image, exported to a 'web-ready' form by Fireworks. Note the drastic decrease in file size. Contains tEXt, sBIT, and pHYs chunks.