]> git.tuebingen.mpg.de Git - paraslash.git/commit
write: Support audio formats != 16 bit little endian.
authorAndre Noll <maan@systemlinux.org>
Mon, 12 Jul 2010 15:28:58 +0000 (17:28 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Jul 2010 12:39:16 +0000 (14:39 +0200)
commitf3b4f3298d2dffdb84a121b7d4aa561975f79be9
tree579afb69c07b6f0606c1a05f441942f6c682225b
parent009e80ae25df7a247a263b5b8e2259c9bdfe20ce
write: Support audio formats != 16 bit little endian.

This adds the new --sample_format option to para_write and teaches
the check_wav_task to read the sample format from the wav header
rather than assuming 16 bit little endian.

The alsa, oss and osx writers all ask the upper buffer tree nodes
for the current audio format. For para_write the check_wav task
answers this query by using the value given at the command line,
looking at the wav header, or using 16 bit little endian as the
default answer.

For para_audiod, the current decoder answers this query. In this
case the audio format is either 16 bit little endian or 16 bit
big endian, depending on the endianness of the machine.
alsa_write.c
filter_common.c
ggo/write.m4
oss_write.c
osx_write.c
para.h
write.c
write_common.c
write_common.h