File format:wav

From sigrok
Jump to navigation Jump to search
wav
Name Waveform audio
Status supported
Source code (in) wav.c
Source code (out) wav.c
Common extension(s) .wav
MIME type audio/vnd.wave
ASCII format no
Compression none
Website wikipedia.org

wav is a binary file format generally used for storing audio data.

Format

See Wikipedia, www-mmsp.ece.mcgill.ca or one of many other resources for a file format overview.

Properties

  • The maximum file size is limited to 4GB (uint32_t used for the file size header field). However, many applications routinely ignore this field, and just load however many samples are in the file.
  • While sigrok stores the analog values in a WAV file as they are, many audio applications that process WAV files cannot deal with sample values outside the range -1 to +1. Thus when generating a WAV file with sigrok with a view to using an audio application on that file, it is recommended to scale down the values to within the audio range.

Implementation

Examples

Resources