write: Make get_btr_value() return void.
authorAndre Noll <maan@systemlinux.org>
Thu, 1 Jul 2010 09:44:16 +0000 (11:44 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Jul 2010 12:39:16 +0000 (14:39 +0200)
commit009e80ae25df7a247a263b5b8e2259c9bdfe20ce
tree724dfa47f2ef7e94eed47bb839df04dc4b5b1308
parent4d425382c007b200121b4be5120db1acd30d292f
write: Make get_btr_value() return void.

Asking upper buffer tree nodes for the sample rate and the channels
count should never fail, because the writer only asks if there is
already some output data to process.

So, replace the tests by assertions, change the return value
of get_btr_value() to void and fix up all callers accordingly.
This simplifies the code a bit.
alsa_write.c
oss_write.c
osx_write.c
write_common.c
write_common.h