Sound input processing improved, unit tests

central testing, if and rule is sound rule
unit test covering different kind of input channel configs
bugfix in sound rule detection