]> git.alsa-project.org Git - tinycompress.git/commit
wave: Introduce parse_wave header
authorDaniel Baluta <daniel.baluta@nxp.com>
Thu, 7 Jan 2021 20:57:14 +0000 (22:57 +0200)
committerDaniel Baluta <daniel.baluta@nxp.com>
Thu, 21 Jan 2021 15:42:30 +0000 (17:42 +0200)
commitbca0504a30158ca2dcee3eebefb4bd6c1d23a3bb
treed6ea016681d7f16742c8f2be00bc2d013b6e7d7b
parentd6aa3e9b193865069d309815bbecde4a0ddc12bc
wave: Introduce parse_wave header

This parses a canonical WAVE header and fills in
informationlike channels, rate and format.

In tinycompress, we use canonical WAVE format described here:

http://soundfile.sapp.org/doc/WaveFormat/

A WAVE file is often just a RIFF file with a single "WAVE" chunk which
consists of two sub-chunks -- a "fmt " chunk specifying the data format
and a "data" chunk containing the actual sample data.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
include/tinycompress/tinywave.h
src/utils/wave.c