]> git.tuebingen.mpg.de Git - paraslash.git/commit
Deduplicate --channels and --sample-rate.
authorAndre Noll <maan@systemlinux.org>
Wed, 30 Jun 2010 16:40:47 +0000 (18:40 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Jul 2010 12:39:16 +0000 (14:39 +0200)
commit1c859dfc274c592eca267197131d6497b650b24c
tree7b144e47acd850626f51b046d36121e6a07736c6
parentd4d37bb32a8d6219f9f52aa2ee3de55eb7e099c8
Deduplicate --channels and --sample-rate.

These options are identical for all writers. Moreover, they only
make sense for para_write but are ignored for para_audiod.

So move these options from the writer-specific ggo file to write.m4,
the config file for para_write. The writers obtain the sample rate
and the channels count as before via the buffer tree exec mechanism,
but it is now the check_wav node rather than the btr node of the writer
that computes this information from the given option, the wav header
or the builtin default.

The new HANDLE_EXEC macro contains the logic for determining the
source of both the sample rate and the channels count.
alsa_write.c
ggo/alsa_write.m4
ggo/oss_write.ggo
ggo/osx_write.ggo
ggo/write.m4
oss_write.c
osx_write.c
write.c