public int get_channels(){
        int channels = 2;
        switch (h_mode) {
            case JOINT_STEREO:
                channels = 2; break;
            case DUAL_CHANNEL:
                channels = 2; break;
            case SINGLE_CHANNEL:
                channels = 1; break;
        }
        
        return channels;
    }