public void copy_info(FrameData fd){
        int fs = frequencies[h_version] [h_sample_frequency];
        int bitrate = bitrates[h_version] [h_layer - 1] [h_bitrate_index];
        int channels = 2;
        
        String mode = "stereo";
        switch (h_mode) {
            case JOINT_STEREO:
                mode = "joint_stereo"; channels = 2; break;
            case DUAL_CHANNEL:
                mode = "dual_channel"; channels = 2; break;
            case SINGLE_CHANNEL:
                mode = "single_channel"; channels = 1; break;
        }      
        
        fd.setInfo(h_version, bitrate, fs, mode, h_mode_extension, h_emph, channels, h_mode, h_protection_bit, h_padding_bit);
        fd.setBitrateIndex(h_bitrate_index);
    }