alsa-utils/axfer
Takashi Sakamoto 4ab7510f3a axfer: add support for a container of Creative Tech. voice format
This commit adds support for data of Creative Tech. voice format. In this
data format, values in each of field are represented in little-endian byte
order and available formats of data sample are restricted in little-endian
byte order.

In version 1.10 of this format, sampling rate is represented with
reciprocal number of the rate, thus we cannot calculate original sampling
rate precisely just from its header. For example at 44.1kHz, file header
includes 233 (=256-1,000,000/44,100), but we cannot recover the value just
from the code (43478.2...). For my convenience, this commit adds a
pre-computed table and lookup major rates from the table.

Additionally, this format can includes several blocks with different
sample format. When handling this type of file, we need to start/stop
substream for each of the block, while this brings complicated code.
This type of format is enough ancient and presently quite minor. This
commit takes a compromise and handles a first sample block only.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-13 12:04:23 +01:00
..
container-au.c axfer: add support for a container of Sparc AU format 2018-11-13 12:04:23 +01:00
container-riff-wave.c axfer: add support for a container of Microsoft/IBM RIFF/Wave format 2018-11-13 12:04:22 +01:00
container-voc.c axfer: add support for a container of Creative Tech. voice format 2018-11-13 12:04:23 +01:00
container.c axfer: add support for a container of Creative Tech. voice format 2018-11-13 12:04:23 +01:00
container.h axfer: add support for a container of Creative Tech. voice format 2018-11-13 12:04:23 +01:00
main.c axfer: add a sub-command to print list of PCMs/devices 2018-11-13 12:04:20 +01:00
Makefile.am axfer: add support for a container of Creative Tech. voice format 2018-11-13 12:04:23 +01:00
misc.h axfer: add an entry point for this command 2018-11-13 12:04:19 +01:00
subcmd-list.c axfer: add a sub-command to print list of PCMs/devices 2018-11-13 12:04:20 +01:00
subcmd.h axfer: add a sub-command to print list of PCMs/devices 2018-11-13 12:04:20 +01:00