Add full support for channel counts other than 2 to the backend (not exposed in the GUI yet).