added multi-channel output support to DiskWriter