refactor for stereo/multi-channel support