/*
 * call-seq:
 *    encoder.num_channels
 *
 * Get the number of channels
 */
static VALUE get_num_channels(VALUE self) {